-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Incorrect rendering of security schemas: by reference and inline #1066
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Thanks @RobinTail for reporting this issue, this is related to our asyncapi-react dependency that we use to render documentation, I have reported the issue here: asyncapi/asyncapi-react#993 |
Thank you for addressing this issue, @Amzani . |
The issue can now be resolved by upgrading the dependency |
Describe the bug
Security schemas are not displayed correctly: wrong references, inline ones are not displayed at all.
For some reason the Studio does not follow the references to security schemas correctly — it seems to pick the first one inside
components / securitySchemes
regardless its id. That leads to wrong schema rendering.Moreover, even when using no references and writing the security schemas inline — none of them are displayed.
How to Reproduce
Consider an application having server-level and operation-level security schemas.
Case 1
Studio displays the server-level security schema twice and does not display the operation specific security schema despite the reference
Case 2: another order in components
Case 3: inline schemas (no references)
Expected behavior
The text was updated successfully, but these errors were encountered: