quarkiverse / quarkus-openapi-generator

OpenAPI Generator - REST Client Generator
Apache License 2.0
122 stars 85 forks source link

Feature request, generate single api class from swagger #360

Open michalsomora opened 1 year ago

michalsomora commented 1 year ago

Currently multiple api classes are generated, one api class per tag defined in swagger file.

Would be perfect if there is an option to define single class name where all the api methods will be generated, no matter what tags are defined in the file. I am migrating from our custom code generation plugin where this feature was supported and it would make the transition much easier. Adjusting the swagger files is not an option for us.

I am open to implement this enhancement with a bit of support from community.

Thanks for the feedback

ricardozanini commented 1 year ago

Hey @misosom thanks for your interest in this extension.

Sure, go ahead and open a PR with a proposal. Bear in mind that this single class must handle the naming clash, maybe adding the tag as a prefix for each operation. Also, every integration test we have in place should also run with this option enabled.

By default, I'd rather stay with the multiple API files we have today.

github-actions[bot] commented 1 year ago

@ricardozanini @hbelmiro This is being labeled as Stale.