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
Visualize the OpenAPI document at a standard URI #334
Comments
Circling back to this one. To make it more standard, should the URL (if available), always be |
As something like Swagger UI is usually for development purposes, should it's existence and URL be mandated by the spec? For instance in Quarkus we only make it available in development mode. Does that mean Quarkus wouldn't be compliant with the spec if it wasn't available outside dev mode? |
I think that's very reasonable to only have it available in certain modes. But when it is available, should it always be in a standard URL? I think it should. |
I'm ok with a default URL, but it should be configurable. How would this play out in terms of the spec and TCK? Would it require implementations to offer a bundled Swagger UI, or would it be optional? |
This would be optional. My view is that, if a vendor does support it, it should be at |
We discussed this at the hangout today and decided the right course of action is:
@kenfinnigan and others - if you have a scenario in mind that goes against this direction please let us know. |
I think a vendor can decide to offer an option to configure it. If users do that, they will no longer be compliant with this MP-OpenAPI spec, but it is their choice. Quarkus has |
Well, I would say that implementors are always free to offer whatever non-conforming options they choose. So out of scope of the spec document IMO. |
I agree @EricWittmann Seeing that there have been no objections to our latest proposal I added the |
Added UI (Swagger UI) module
At our weekly hangout today we discussed the possibility of a spec-defined URL where a user could visualize the generated OpenAPI document. The idea is that the spec would indicate how to enable/disable such a feature and specify where a user could find such a visualization. This would probably be similar to validation in approach (config property to enable/disable and well defined endpoint to load the UI) but is also open for discussion of course.
As an example of what this might look like for a vendor - Open Liberty provides an endpoint (e.g.
/openapi/ui
that results in Swagger UI being opened with the generated OpenAPI document.The text was updated successfully, but these errors were encountered: