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
Can not use components/securitySchemes in swagger-ui #3705
Comments
@shockey is this related to the try it out functionality or something else? |
Looks like this is coming from the authorization feature itself, here's where the error is throwing from:
Adding Obviously, the real fix is to implement OpenAPI authorization support, but in the meantime, disabling authorization features when an OpenAPI document is present will prevent this sort of issue. |
Closing this, as the ambiguous Swagger2-in-OAS3 behavior has been solved and the OAS3 securitySchemes functionality is covered in other tickets 😄 |
version: "3.2.2", gitRevision: "g45e7a541", gitDirty: true, buildTimestamp: "Sat, 23 Sep 2017 20:06:42 GMT", machine: "Kyles-MacBook-Air.local"
git pull && open dist/index.html
Chrome Version 61.0.3163.91 (Official Build) (64-bit)
Mac 10.12.6
Defining security as follows works:
However this does not seem OpenAPI 3.0.0 compliant (or I can't find the definition of
securityDefinitions
anywhere in https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md).Defining security according to the docs in OpenAPI 3.0.0 using
securitySchemes
and clicking the lock icon in the operation does not work and result in the following error in de ui:Complete
openapi.yaml
:The text was updated successfully, but these errors were encountered: