Skip to content

Commit

Permalink
fix: enum usage for body params
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Mar 9, 2024
1 parent 68c9adb commit 767b64d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/dart/base/utils.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro map_parameter(parameters) %}
{% for parameter in parameters %}
'{{ parameter.name }}': {{ parameter.name | caseCamel | overrideIdentifier }},
'{{ parameter.name }}': {{ parameter.name | caseCamel | overrideIdentifier }}{% if parameter.enumValues | length > 0 %}{% if not parameter.required %}?{% endif %}.value{% endif %},
{% endfor %}
{% endmacro %}

Expand Down
2 changes: 1 addition & 1 deletion templates/flutter/base/utils.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- macro map_parameter(parameters) -%}
{%- for parameter in parameters ~%}
'{{ parameter.name }}': {{ parameter.name | caseCamel | overrideIdentifier }},
'{{ parameter.name }}': {{ parameter.name | caseCamel | overrideIdentifier }}{% if parameter.enumValues | length > 0 %}{% if not parameter.required %}?{% endif %}.value{% endif %},
{%- endfor ~%}
{%- endmacro ~%}

Expand Down

0 comments on commit 767b64d

Please sign in to comment.