Skip to content

Commit 7279f5e

Browse files
committed
Fix Apple OAuth params
1 parent 9686d54 commit 7279f5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/swift/base/params.twig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,13 @@
1313
"{{ parameter.name }}": {{ parameter.name | caseCamel | escapeKeyword }}{% if not loop.last %},{% endif %}
1414

1515
{%~ endfor %}
16+
{%~ if method.auth | length > 0 %}
17+
{%~ for node in method.auth %}
18+
{%~ for key,header in node | keys %}
19+
"{{ header | caseLower }}" to client.config["{{ header | caseLower }}"]{% if not loop.last %},{% endif %}
20+
21+
{%~ endfor %}
22+
{%~ endfor %}
23+
{%~ endif %}
1624
]
1725
{%~ endif %}

0 commit comments

Comments
 (0)