File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
src/main/resources/handlebars/swift5 Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -144,18 +144,25 @@ open class {{classname}} {
144
144
145
145
let nonNullParameters = APIHelper.rejectNil(formParams)
146
146
let parameters = APIHelper.convertBoolToString(nonNullParameters)
147
- { {/hasFormParams} }
148
- { {^hasFormParams} }
147
+ { {/hasFormParams} }
148
+ { {^hasFormParams} }
149
149
let parameters: [String:Any]? = nil
150
- { {/hasFormParams} }
151
- { {/bodyParam} }{ {#hasQueryParams} }
150
+ { {/hasFormParams} }
151
+ { {/bodyParam} }
152
+ { {#queryParams} }
153
+ { {#@first} }
152
154
var url = URLComponents(string: URLString)
153
155
url?.queryItems = APIHelper.mapValuesToQueryItems([
154
- { {#queryParams } }
156
+ { {/@first } }
155
157
{ {> _param} }{ {#hasMore} }, { {/hasMore} }
156
- { {/queryParams} }
157
- ]){ {/hasQueryParams} }{ {^hasQueryParams} }
158
- let url = URLComponents(string: URLString){ {/hasQueryParams} }{ {#headerParams} }{ {^secondaryParam} }
158
+ { {#@last} }
159
+ ])
160
+ { {/@last} }
161
+ { {/queryParams} }
162
+ { {^queryParams} }
163
+ let url = URLComponents(string: URLString)
164
+ { {/queryParams} }
165
+ { {#headerParams} }{ {^secondaryParam} }
159
166
let nillableHeaders: [String: Any?] = [{ {/secondaryParam} }
160
167
{ {> _param} }{ {#hasMore} },{ {/hasMore} }{ {^hasMore} }
161
168
]
You can’t perform that action at this time.
0 commit comments