Skip to content
Advertisement

Tag: swagger-codegen

files aren’t generated using Swagger codegen plugin

I can’t generate the models / controllers / services in any way, I run this command mvn clean install but it generates the files in target/generate-sources,I have used json but also yaml, How can I make this generate it for me in src/main? Here is my pom.xml , project – https://github.com/FreeTrainingZone/identityverification-repo Answer Modify file gradle/swagger.gradle Modify file pom.xml

Swagger codegen generates duplicated variables

I’m trying to generate client from yaml that contains That means, accept and contentType will be present in generated method signature. On top of that, I’v configured plugin like this Still, after mvn clean install I’m getting Error:(130,31) java: variable accept is already defined in method And generated code contains I’v tried different versions of plugin (from 2.3.0 up to

Swagger Codegen basePath is being ignored

I’m trying to generate some web services definitions using Swagger Codegen ยป 2.2.1 All configs are working and the classes are generate correctly by my .yaml definitions. Why the property basePath is being ignored? My @RestController generate using only paths definition: Expected (using basePath and paths definitions): What am I doing wrong? Did I forget something? My .yaml contract: Answer

Advertisement