quarkiverse / quarkus-openapi-generator

OpenAPI Generator - REST Client Generator
Apache License 2.0
125 stars 89 forks source link

Class generation from spec only when spec changed #878

Open c-schmitz-tsystems opened 3 days ago

c-schmitz-tsystems commented 3 days ago

When I start my quarkus application with mvn quarkus:dev the openapi-generator from quarkus always generates the proxies from the swagger file, no matter if the spec changed or not. This triggers the compile and increases the startup time of the dev session. It would be nice when the generator has a change detection which only generates the proxies in case of a changed swagger file. Thanks for any comments on this

ricardozanini commented 2 days ago

Yes, that's a known issue since the inception of this extension. Feel free to send a PR to fix it; it's not on my list of priorities now. But I can help review a PR.

c-schmitz-tsystems commented 6 hours ago

The openapi generator maven plugin supports such a feature but I cant reproduce the same client generation as the quarkiverse generator does. Is there any plan to add a quarkus generator to it for rest client proxy generation?