Skip to content

Commit 41e32bc

Browse files
committed
add new function to jinja templates
1 parent 565841f commit 41e32bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.generator/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
format_data_with_schema,
2525
get_response_type,
2626
upperfirst,
27+
escape_method_reserved_names,
2728
)
2829

2930

@@ -75,6 +76,7 @@ def lookup(value, path):
7576
JINJA_ENV.globals["format_parameters"] = format_parameters
7677
JINJA_ENV.globals["get_response_type"] = get_response_type
7778
JINJA_ENV.globals["get_type_at_path"] = openapi.get_type_at_path
79+
JINJA_ENV.filters["escape_method_reserved_names"] = escape_method_reserved_names
7880

7981
JAVA_EXAMPLE_J2 = JINJA_ENV.get_template("example.j2")
8082

0 commit comments

Comments
 (0)