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
If an OpenAPI document has a schema with a responses property, this ruleset appears to treat it as
an operation responses object and applies several oawap responses rules to it, yielding a false positive error.
Note that both the responses property in the schema and the responses value in the example trigger the same false positive errors.
Context
Using attached source as spectral.yaml and run spectral:
If an OpenAPI document has a schema with a
responses
property, this ruleset appears to treat it asan operation
responses
object and applies several oawapresponses
rules to it, yielding a false positive error.Note that both the
responses
property in the schema and theresponses
value in the example trigger the same false positive errors.Context
Using attached source as
spectral.yaml
and run spectral:spectral.yaml
(Note: the attachment has a
.txt
extension because GitHub does not allow.yaml
files)This yields false positives (see below).
Current Behavior
False positives. See Steps below
Expected Behavior
No error for an
example
with aresponses
objectSteps to Reproduce
Environment
macOS, node 14
Running in an npm package where we've installed:
The text was updated successfully, but these errors were encountered: