swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
For swagger files (spec : 2.0) provided by one of our vendor Genesys, the build is failing with newer version of io.swagger.codegen.v3 : swagger-codegen-plugin : 3.0.27.
The reason for failure is that there are 2 additional files that are being generated, one being named "Schema.java". In this file there is import of io.swagger.v3.oas.annotations.media.Schema which comes from swagger-annotations library.
Sample maven project has been attached in the comments section. Just change swagger-codegen-maven-plugin version to 3.0.7 and notice that the project builds without any problems.
Description
For swagger files (spec : 2.0) provided by one of our vendor Genesys, the build is failing with newer version of io.swagger.codegen.v3 : swagger-codegen-plugin : 3.0.27.
The reason for failure is that there are 2 additional files that are being generated, one being named "Schema.java". In this file there is import of io.swagger.v3.oas.annotations.media.Schema which comes from swagger-annotations library.
Sample maven project has been attached in the comments section. Just change swagger-codegen-maven-plugin version to 3.0.7 and notice that the project builds without any problems.
JDK: 1.8
For JDK 11, you need to add following dependency.
Swagger-codegen version
3.0.27
Swagger declaration file content or url
Attached in the comments section.
Command line used for generation
Steps to reproduce
mvn clean install
Related issues/PRs
Suggest a fix/enhancement