quarkiverse / quarkus-openapi-generator

OpenAPI Generator - REST Client Generator
Apache License 2.0
108 stars 66 forks source link

open-api-normalizer configuration key unrecognized #644

Open enrico-niccoli opened 5 months ago

enrico-niccoli commented 5 months ago

Hi everyone,

I'm using quarkus-openapi-generator to generate code from a contract with 10 Tags, one for each endpoint. This produces 10 different Api interface files but I would need to compress everything in a single interface.

Searching on the web I found the normalizer config _SET_TAGS_FOR_ALLOPERATIONS=MySingleTag to generate a single file, so I added the property quarkus.openapi-generator.codegen.spec.my_custom_name.open-api-normalizer=SET_TAGS_FOR_ALL_OPERATIONS=MySingleTag since open-api-normalizer is listed as a supported configuration

But, at compile time, I receive this warning and openapi-generator still produces 10 different classes: [WARNING] [io.quarkus.config] Unrecognized configuration key "quarkus.openapi-generator.codegen.spec.my_custom_name.open-api-normalizer" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo

Am I missing something? Is there some extra dependency to add?

Thanks, Enrico

ricardozanini commented 5 months ago

Hi Enrico!

Thanks for this issue. Currently, we are not implementing this feature. This extension is not a carbon copy of the original Maven plugin. We have to implement those features as requested since we have to match the Quarkus environment.

It shouldn't be hard to implement, if you want you can send a PR since I believe the maintainers don't have bandwidth atm.

github-actions[bot] commented 2 months ago

@ricardozanini @hbelmiro This is being labeled as Stale.