You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to show security scheme roles. According to the specs roles are required for oauth and openIdConnect types, but they can be defined for other scheme types too.
Context
This is a curated OpenAPI spec with an operation that requires the read:tokens role, returning a 403 error if not present. I would like to show this information in the rendered documentation.
paths:
/tokens:
get:
responses:
200:
description: A list of tokens.401:
$ref: '#/components/responses/Unauthorized'403:
$ref: '#/components/responses/Forbidden'security:
- bearerAuth: ['read:tokens']components:
securitySchemes:
bearerAuth:
type: httpscheme: bearer
Current Behavior
read:tokens is not shown:
Expected Behavior
Something like this:
The text was updated successfully, but these errors were encountered:
It would be helpful to show security scheme roles. According to the specs roles are required for
oauth
andopenIdConnect
types, but they can be defined for other scheme types too.Context
This is a curated OpenAPI spec with an operation that requires the
read:tokens
role, returning a 403 error if not present. I would like to show this information in the rendered documentation.Current Behavior
read:tokens
is not shown:Expected Behavior
Something like this:
The text was updated successfully, but these errors were encountered: