How to ignore/disable rules for specific matches #2222
-
I am using Spectral CLI and have a
When running Spectral with this configuration against my OpenAPI yaml I get some errors:
In this case it is intended that this object property does not match the rule, and so I'd like to ignore this match I have tried some variations on
results in:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
To answer my own question, need to add
|
Beta Was this translation helpful? Give feedback.
-
@josephearl the solution mentioned by you is not working for me as of today. I am using spectral docker image. |
Beta Was this translation helpful? Give feedback.
-
For the sake of anyone else who, like me, have been trying to use |
Beta Was this translation helpful? Give feedback.
To answer my own question, need to add