quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.74k stars 2.67k forks source link

OpenAPI: Allow configuration of name of generated files #44041

Open AndreasPetersen opened 1 day ago

AndreasPetersen commented 1 day ago

Description

If we set quarkus.smallrye-openapi.store-schema-directory Quarkus will generate a openapi.yaml and openapi.json file in the specified directory.

Our organisation has a requirement that these files must have a specific name, which is not openapi. We would like a new config option to change the name of the generated files.

Implementation ideas

A new configuration property, e.g. quarkus.smallrye-openapi.file-name, that determines the name of the generated OpenAPI files.

quarkus-bot[bot] commented 1 day ago

/cc @EricWittmann (openapi), @MikeEdgar (openapi), @phillip-kruger (openapi), @radcortez (config)

phillip-kruger commented 1 day ago

@AndreasPetersen do you want to do a PR for this ?