forked from loafle/openapi-generator-original
Change booleans in query parameters from 0/1 to true/false to match Swagger UI behaviour
This commit is contained in:
parent
b9b1b7647b
commit
a3c93a64b4
@ -92,7 +92,14 @@ NSInteger k{{classname}}MissingParamErrorCode = 234513;
|
|||||||
{{#collectionFormat}}
|
{{#collectionFormat}}
|
||||||
queryParams[@"{{baseName}}"] = [[{{classPrefix}}QueryParamCollection alloc] initWithValuesAndFormat: {{paramName}} format: @"{{collectionFormat}}"];
|
queryParams[@"{{baseName}}"] = [[{{classPrefix}}QueryParamCollection alloc] initWithValuesAndFormat: {{paramName}} format: @"{{collectionFormat}}"];
|
||||||
{{/collectionFormat}}
|
{{/collectionFormat}}
|
||||||
{{^collectionFormat}}queryParams[@"{{baseName}}"] = {{paramName}};{{/collectionFormat}}
|
{{^collectionFormat}}
|
||||||
|
{{#isBoolean}}
|
||||||
|
queryParams[@"{{baseName}}"] = [{{paramName}} isEqual:@(YES)] ? @"true" : @"false";
|
||||||
|
{{/isBoolean}}
|
||||||
|
{{^isBoolean}}
|
||||||
|
queryParams[@"{{baseName}}"] = {{paramName}};
|
||||||
|
{{/isBoolean}}
|
||||||
|
{{/collectionFormat}}
|
||||||
}
|
}
|
||||||
{{/queryParams}}
|
{{/queryParams}}
|
||||||
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
NSMutableDictionary* headerParams = [NSMutableDictionary dictionaryWithDictionary:self.apiClient.configuration.defaultHeaders];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user