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 bc3b5a5 commit 3a3dc5aCopy full SHA for 3a3dc5a
templates/swift/Sources/Services/Service.swift.twig
@@ -40,7 +40,7 @@ open class {{ service.name | caseUcfirst }}: Service {
40
{{include('swift/base/requests/location.twig')}}
41
{% else %}
42
{% if 'multipart/form-data' in method.consumes %}var{% else %}let{% endif %} headers: [String: String] = [
43
-{{ method.headers|map((header, key) => " \"#{key}\": \"#{header}\"")|join(',\n')|raw }}{% if method.type == "graphql" %}
+{{ method.headers|map((header, key) => " \"#{key}\": \"#{header}\"")|join(',\n')|raw }}
44
]
45
{% if method.responseModel %}
46
let converter: ([String: Any]) -> {{ _self.resultType(spec, method) }} = { dict in
0 commit comments