Skip to content

New spectral rule to distinguish global and operation-level security#62

Open
wserlenga wants to merge 2 commits into
italia:mainfrom
wserlenga:dev-rule-warning-security-field
Open

New spectral rule to distinguish global and operation-level security#62
wserlenga wants to merge 2 commits into
italia:mainfrom
wserlenga:dev-rule-warning-security-field

Conversation

@wserlenga

Copy link
Copy Markdown
Contributor
  • This PR refines the Spectral rule oas3-pdnd-security-defined by replacing the simple root-level security check with a custom JavaScript function.

  • The new implementation distinguishes between a fully unsecured OpenAPI descriptor and descriptors where security is declared only on some operations. In the latter case, the rule now reports the exact operations missing an explicit security requirement.

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