mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
Merge pull request #2908 from iomark/master
[Objc] fixed code generation for collection parameter
This commit is contained in:
commit
9598974d45
@ -113,7 +113,7 @@ NSInteger k{{classname}}MissingParamErrorCode = 234513;
|
|||||||
{{#queryParams}}
|
{{#queryParams}}
|
||||||
if ({{paramName}} != nil) {
|
if ({{paramName}} != nil) {
|
||||||
{{#collectionFormat}}
|
{{#collectionFormat}}
|
||||||
queryParams[@"{{baseName}}"] = [[{{classPrefix}}QueryParamCollection alloc] initWithValuesAndFormat: {{baseName}} format: @"{{collectionFormat}}"];
|
queryParams[@"{{baseName}}"] = [[{{classPrefix}}QueryParamCollection alloc] initWithValuesAndFormat: {{paramName}} format: @"{{collectionFormat}}"];
|
||||||
{{/collectionFormat}}
|
{{/collectionFormat}}
|
||||||
{{^collectionFormat}}queryParams[@"{{baseName}}"] = {{paramName}};{{/collectionFormat}}
|
{{^collectionFormat}}queryParams[@"{{baseName}}"] = {{paramName}};{{/collectionFormat}}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user