Validate that Security Requirements are Defined #2434
dillonredding
started this conversation in
Rulesets
Replies: 3 comments
-
Any news on that? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I stubbed a custom function implementation based on the current oasOpSecurityDefined https://github.com/italia/api-oas-checker/pull/482/files#diff-02327926eb1e6d9b33c3d62bd55da90506c59ad3f913f7431785468be07bd713 Does make sense to you to add something like this in spectral? It is probably an easy feature to add... |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ioggstream |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
User story.
As an API designer, when I define a security requirement at the top-level, or for an operation, then I want it to be defined in the
securitySchemes
components
.Is your feature request related to a problem?
According to the OAS for security requirement objects:
However, spectral raises no errors for the follow OpenAPI doc:
Describe the solution you'd like
I would like spectral to validate that all declared security requirements are defined as per the OAS requirement.
Beta Was this translation helpful? Give feedback.
All reactions