Generate one openapi spec from multiple maven modules #1381
-
I have a maven multi module project with different quarkus services. I want to generate one openapi spec for all modules. Is that possible? I could'nt find an aggregate goal or similar in the maven plugin. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I am not sure that is possible out of the box. The best workaround I can think of is to let every Quarkus service dump it's own generated OpenAPI schema to a file (by using quarkus.smallrye-openapi.store-schema-directory Then write a separate app that combine them. You can use the SmallRye API to do the merge. Maybe @MikeEdgar has some more ideas. |
Beta Was this translation helpful? Give feedback.
-
@phillip-kruger Thanks for your quick reply. Would it be possible to add a new goal This is a feature request :) |
Beta Was this translation helpful? Give feedback.
I am not sure that is possible out of the box. The best workaround I can think of is to let every Quarkus service dump it's own generated OpenAPI schema to a file (by using quarkus.smallrye-openapi.store-schema-directory
Then write a separate app that combine them. You can use the SmallRye API to do the merge.
Maybe @MikeEdgar has some more ideas.