Forum Discussion
I clone the branch below and executed the maven command "mvn" in base directory.
After that, I executed the same command to generate and "swagger-codegen" worked fine
- HKosova6 years agoSmartBear Alumni (Retired)
Hi mignoni,
Swagger Codegen 2.x, which you initially used, only supports OpenAPI 2.0 definitions ("swagger": "2.0") and does not support OpenAPI 3.0. To generate code for OpenAPI 3.0 definitions, you need Swagger Codegen 3.x, which, as you've correctly noted, lives in the "3.0.0" branch of the swagger-codegen repository.
Just FYI, you can download the compiled CLI JAR from Maven Central:
http://central.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/
Here's a direct link to the latest version (3.0.8 as of this writing):
http://central.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.8/swagger-codegen-cli-3.0.8.jar
Related Content
- 4 years ago
Recent Discussions
- 16 days ago
- 24 days ago