swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

improvement: allow generation of independent models

Open Jdonn1995 opened this issue 7 years ago • 0 comments

description I am currently using SwaggerHub to generate a spring server and java clients, but only need the models from the java clients. The specific issue i'm running into is using the github integration to push updated clients to my repo. The models use the annotation '@Schema' which requires a swagger specific dependency. So, rather than pushing up the changed models and having to go in a delete the annotation every time, it would be ideal to be able to generate these without any dependency on swagger.

Even though this is only the codegen, it would be quicker to just download the yml and generate the models correctly (without the annotation) and push it up

swagger code-gen version 3.0.11

suggested fix/enhancement It would be nice if the code-gen had an option to only generate the models independently of the rest of the code. This would mean the option to remove the '@Schema' annotation.

Jdonn1995 avatar Nov 25 '19 12:11 Jdonn1995