Merge pull request #2908 from iomark/master

[Objc] fixed code generation for collection parameter
This commit is contained in:
wing328 2016-05-25 21:57:00 +08:00
commit 9598974d45

View File

@ -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}}
} }