We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 178d7f6 commit 1240f40Copy full SHA for 1240f40
templates/swift/base/params.twig
@@ -10,7 +10,7 @@
10
{%- else -%} let
11
{%- endif %} params: [String: Any?] = [
12
{%~ for parameter in method.parameters.query | merge(method.parameters.body) %}
13
- "{{ parameter.name }}": {{ parameter.name | caseCamel | escapeKeyword }}{% if not loop.last %},{% endif %}
+ "{{ parameter.name }}": {{ parameter.name | caseCamel | escapeKeyword }}{% if not loop.last or method.auth | length > 0 %},{% endif %}
14
15
{%~ endfor %}
16
{%~ if method.auth | length > 0 %}
0 commit comments