redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Show required scopes in route unexpanded authorizations section

Open ArthurMelin opened this issue 3 years ago • 1 comments

Describe the problem to be solved Currently, a route's required scopes are not shown in the Authorizations section unless it is expanded: Unexpanded (default state): image Expanded: image

Describe the solution you'd like It would be great to be able to see at a glance a route's required scopes. One solution would be showing them in the unexpanded state in brackets like in the expanded state. Another solution is adding a config option to always expand the authorizations sections at page load.

Describe alternatives you've considered We could put the required scopes in the route description but that's not really an elegant solution.

Additional context We use OpenAPI version 3.1, Redoc latest (2.0.0 at this time). We have a single security scheme of type http.

ArthurMelin avatar Oct 07 '22 08:10 ArthurMelin

Still relevant today, as it would be a nice UI improvement !

emouty avatar Jan 28 '25 09:01 emouty