[Objc] fixed code generation for collection parameter

This commit is contained in:
Igor Markov
2016-05-19 11:50:57 +03:00
parent 2dda6a6e9a
commit c245f2199f

View File

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