Skip to content

Enums defined in json defination file could not able to create enums in Objective-c language. #3478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Ravi-Impiger opened this issue Jul 29, 2016 · 2 comments

Comments

@Ravi-Impiger
Copy link

Ravi-Impiger commented Jul 29, 2016

Description:

Enums defined in json defination file could not able to generate enums in Objective-c language.
If you defined enum as a class then it will be generated with out enums.
all enum in models classes are created as NSString prperty.

and ther eis no support for constants and macros.

Swagger-codegen version :

: 2.2.0 (current stable version)

Swagger declaration file content or url
 http://petstore.swagger.io/v2/swagger.json
Command line used for generation

swagger-codegen generate -i $SWAGGER_URL -l objc

Steps to reproduce

Generate enums in objective -C thats it

Related issues
Suggest a Fix
@wing328
Copy link
Contributor

wing328 commented Jul 31, 2016

@Ravi-Impiger ObjC API client does not support enum at the moment. There was a PR (not merged) before: #1185.

Would you have cycle to contribute the eum support for ObjC API client? If yes, I can show you some good starting points.

@wing328
Copy link
Contributor

wing328 commented Oct 26, 2016

Duplicated: #1167

@wing328 wing328 closed this as completed Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants