forked from loafle/openapi-generator-original
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}}
|
||||
if ({{paramName}} != nil) {
|
||||
{{#collectionFormat}}
|
||||
queryParams[@"{{baseName}}"] = [[{{classPrefix}}QueryParamCollection alloc] initWithValuesAndFormat: {{baseName}} format: @"{{collectionFormat}}"];
|
||||
queryParams[@"{{baseName}}"] = [[{{classPrefix}}QueryParamCollection alloc] initWithValuesAndFormat: {{paramName}} format: @"{{collectionFormat}}"];
|
||||
{{/collectionFormat}}
|
||||
{{^collectionFormat}}queryParams[@"{{baseName}}"] = {{paramName}};{{/collectionFormat}}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user