Skip to content

fix: type security requirement scopes as arrays#2776

Open
kriptoburak wants to merge 1 commit into
ferdikoomen:mainfrom
kriptoburak:codex/allow-optional-security
Open

fix: type security requirement scopes as arrays#2776
kriptoburak wants to merge 1 commit into
ferdikoomen:mainfrom
kriptoburak:codex/allow-optional-security

Conversation

@kriptoburak

Copy link
Copy Markdown

Summary

Fixes #2775.

Security Requirement Object values are arrays of scope strings in OpenAPI 2.0 and 3.x. This updates the v2 and v3 parser interfaces from string values to string array values.

Valid examples include empty arrays for API key or bearer alternatives, such as { apiKey: [] }.

Validation

  • git diff --check
  • Unit tests were not run locally because this clone has no installed dependencies and the machine is currently out of disk space after a prior dependency install attempt in another repository.

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.

Security requirement scopes are typed as strings

1 participant