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
Chore summary
I'm using spectral as a JS dependency in version 5.9.2. I'm validating output json file and some paths have lots of errors that I must postpone addressing. I wanted to use overrides to disable rules but it is not working and I have no idea what I'm doing wrong.
Can you tell me what I'm doing wrong?
Can I disable the oas3-valid-schema-example rule?
I was trying with path: "openapi.json#/components/schemas/Activity/properties/tags/example" and it also fails.
Hi, @P0lip any suggestion what I can use to ignore those errors in version 5 of spectral?
I cannot easily upgrade to v6... looks like I have some dependency clashes.
Chore summary
I'm using spectral as a JS dependency in version
5.9.2
. I'm validating output json file and some paths have lots of errors that I must postpone addressing. I wanted to use overrides to disable rules but it is not working and I have no idea what I'm doing wrong.In my root folder I have
.spectral.yml
openapi.json
I'm including only very small portion of my file
The example is not a proper array so the validation fails as expected with:
But I specified that this should be reported as
info
and should not fail my test.I'm using command
Can you tell me what I'm doing wrong?
Can I disable the
oas3-valid-schema-example
rule?I was trying with path:
"openapi.json#/components/schemas/Activity/properties/tags/example"
and it also fails.Additional context
If needed I've created sample project here: https://github.com/antusus/spectral-test and you should be able to use any node version.
The text was updated successfully, but these errors were encountered: