-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Milestone
Description
Description
Objc code generator produces invalid source code that can not be compiled. Problem generated code:
if (teamIds != nil) { queryParams[@"team_ids"] = [[SWGQueryParamCollection alloc] initWithValuesAndFormat: team_ids format: @"csv"]; }
Suggest a Fix
Second team_ids (after initWithValuesAndFormat) should be teamIds
Fix will be provided by pull request
Swagger-codegen version
Swagger-codegen version 2.0
Swagger declaration file content or url
can be find on https://dl.dropboxusercontent.com/u/41121857/telemetrio.json
Command line used for generation
swagger-codegen generate -i telemetrio.json -l objc
Steps to reproduce
- Generate Objc source code from telemetrio.json using command line swagger-codegen generate -i telemetrio.json -l objc
- Add result source code to your ios project using Xcode IDE
- Try to compile project
- Expected result: built application. Actual result: error message "error: use of undeclared identifier 'team_ids'; did you mean 'teamIds'?"