You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ spectral lint openapi.yml
[...]
13:20 error no-security-schemes-defined All APIs MUST have a security scheme defined. components.schemas.Foo.properties.components
Expected behavior
The rule should not match, i.e the behavior should be the same as when renaming the components property of the above Foo schema to component.
Environment
Library version: 6.14.2
The text was updated successfully, but these errors were encountered:
Describe the bug
The no-security-schemes-defined rule seems to incorrectly match non-root components objects, resulting in false positives.
To Reproduce
Given this
openapi.yml
document:Run this CLI command:
Expected behavior
The rule should not match, i.e the behavior should be the same as when renaming the
components
property of the above Foo schema tocomponent
.Environment
The text was updated successfully, but these errors were encountered: