-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: option to set the OpenAPI version #298
Comments
Maybe we allow more that just the version to be overridden in MP Config. Eg. Contact and maybe other field ? Possible using enums (3.0.0,3.0.1,3.0.2) |
Also maybe change the default to 3.0.2 |
...or 3.0.3? https://github.com/OAI/OpenAPI-Specification/releases Context: We are using 3.0.3 in our OpenAPI-files and we noticed Quarkus is exposing the API with 3.0.1... cc @kenfinnigan |
I think this line in openApi.setOpenapi(OpenApiConstants.OPEN_API_VERSION); Perhaps we remove that line and it would allow whatever is given in the static file or the |
Hi All. My plan is do the following:
How does that sound ? |
@phillip-kruger That sounds good to me! |
Yes, we might have to set a max. |
One thing to consider about validating the user's input for the version is that it's something we don't really do anywhere else. I.e. let the user/developer decide if they want to output something that isn't technically valid. We've kind of hinted in the past that there are countless ways someone could do the wrong thing (from an OAS perspective) that it could get complicated quickly to verify all the inputs. |
Good point @MikeEdgar . So should we rather not validate the version ? I don't have a strong opinion either way. Maybe start of without any validation and when people log bugs about them setting the wrong version then we add it ? :) |
This comes from someone on the Microprofile OpenAPI gitter chat room:
The text was updated successfully, but these errors were encountered: