REST OpenApi: support defining a different model-package for each OpenApi spec file
- Dominant language
- Java
- Stars
- 302
- Forks
- 232
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 108
Description
I would like `quarkus-maven-plugin` to generate code to a separate java package for each OpenApi spec file.
Background:
I consume from multiple services, which are defined in multiple OpenApi spec files (.yaml).
I can set `quarkus.camel.openapi.codegen.locations` to a comma-separated list of spec files, and code gets generated ok.
But `quarkus.camel.openapi.codegen.model-package` only accepts a single value, so all generated files from all OpenAPi spec files end up in the same package.
Now 2 of the OpenApi spec files define a schema with the same name but slightly different structure. And code generation then just overwrites the first definition with the second. So I can only handle responses from one service, but not the other.
---
Topic in Zulip: [#camel-quarkus > REST OpenApi: different package for each OpenApi spec file?](https://camel.zulipchat.com/#narrow/channel/257302-camel-quarkus/topic/REST.20OpenApi.3A.20different.20package.20for.20each.20OpenApi.20spec.20file.3F/with/575248481)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.