Skip to content
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

Handle emtpy object in security array #1631

Closed
cmeeren opened this issue May 31, 2021 · 2 comments · Fixed by #1678
Closed

Handle emtpy object in security array #1631

cmeeren opened this issue May 31, 2021 · 2 comments · Fixed by #1678
Assignees

Comments

@cmeeren
Copy link

cmeeren commented May 31, 2021

According to OAI/OpenAPI-Specification#1684, the following is valid:

security:
  - Session: []
  - {}

(This is needed e.g. to signal that an operation is available both with a specific auth scheme and without authentication, e.g. for limited guest access.)

ReDoc currently renders it as this:

image

The rendering should be improved. Not sure what the best rendering would be, but anything that clearly says or indicates "no authentication" would already be better than nothing.

Sorry I can't contribute myself; I'm not a JS/front-end dev.

@cmeeren
Copy link
Author

cmeeren commented Sep 6, 2021

Has this been released? I still see the old behavior, more than a month after this was closed.

@cmeeren
Copy link
Author

cmeeren commented Nov 29, 2021

For future readers, seems like this works now:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants