Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported Jinja2 builtin filters #21

Open
vctmohan opened this issue Oct 29, 2020 · 0 comments
Open

Unsupported Jinja2 builtin filters #21

vctmohan opened this issue Oct 29, 2020 · 0 comments

Comments

@vctmohan
Copy link

Apparently a few of the Jinja2 builtin filters are not supported by jinja2schema. I came across this while trying to explore jinja2schema and using my templates with "lower" filter.

How to reproduce

The following simple snippet can be used to reproduce the issue.

from jinja2schema import infer
infer("{{var|lower}}")

Looking at the list of jinja2 builtin filters, and jinja2schema visit_filters method, here is the list of filters for which support is not available: 'lower', 'max', 'min', 'reverse', 'tojson', 'unique'.

System Configuration

Python version - 3.7.6
Jinja2 version - 2.11.2
jinja2schema versio - 0.1.4
Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant