swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.74k stars 6.02k forks source link

inflector codegen incorrect swagger-inflector version and swagger file name #1640

Open vnalla opened 8 years ago

vnalla commented 8 years ago

Swagger Codegen with -l inflector option generating code with incorrect pom.xml file. 1) it is using swagger-inflector version 1.0.0-SNAPSHOT, which is not in the maven repo. it should be changed to 1.0.0 2) scan target is using src/main/swagger/swagger.yaml yaml file name where as generated code with file name swagger.json.

fehguy commented 8 years ago

Please use master of codegen. The release of codegen was made before inflector was released.

vnalla commented 8 years ago

The same result. Downloaded the swagger-codegen from this URL https://github.com/swagger-api/swagger-codegen using "Download Zip" button and compiled using "mvn package".

thanks!

fehguy commented 8 years ago

right you are! I thought these files were updated. Doing that now, and will update this ticket as soon as it's merged. Apologies for the back-and-forth.

fehguy commented 8 years ago

Ok all done, via https://github.com/swagger-api/swagger-codegen/commit/ce9f8baefcd5de9469b0494ac43fefd50aa676b4 Please try that out, and comment when you can.