eclipse-archived / codewind

The official repository of the Eclipse Codewind project
https://codewind.dev
Eclipse Public License 2.0
114 stars 44 forks source link

Client generator shouldn't add swagger annotations #548

Open NottyCode opened 5 years ago

NottyCode commented 5 years ago

I have a yaml in my project and I've used it to generate a JAX-RS client. Given I have the yaml which is the definitive definition of the API there is no need to add any of the swagger apis to the generated code. This would significantly simplify the generated code from an end user perspective.

keithchong commented 5 years ago

Hi @NottyCode , I don't think I can control whether annotations should or should not be added. It's in the specific generator.

On a related note, we can be selective in terms of which Java packages/classes are generated. For example, there is an option to turn off generating the org.openapitools.api package, and only generate the org.openapitools.model package. If you want that, then we can add that to the VS Code extension and Eclipse wizard as an enhancement.