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

OAuth Scopes - DO NOT MERGE #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

OAuth Scopes - DO NOT MERGE #1

wants to merge 8 commits into from

Conversation

tedepstein
Copy link

Inspecting changes.

… this scope.

In the OpenAPI v3 specification, Security Scheme Object requires a map of scopes, but doesn't specify "non-empty." The Security Requirement Object strongly implies that a non-empty array of scopes is required, but again doesn't specify. KaiZen OpenAPI Editor treats the empty scopes array as invalid.

I'll take this up with the OpenAPI specification working group. If empty scopes is allowed in security scheme, it must be allowed in requirements. Conversely, if it's optional in security requirement object, it must be optional in the security scheme.\

In the meantime, I've added this "unspecified" scope and referenced that from security requirements. This gets around the issue for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant