Can I disable a rule in my source file so that a specific violation is not flagged, but not disable the rule globally in my rule set?
For example, consider the rule
operation-2xx-response: Operation must have at least one `2xx` response.
We have a couple (rare) operations which are documented to return a 302 or other redirect; these operations never return a 200. (I don’t want to add a 2xx response to the OpenAPI definition just to quiesce this specific rule violation - that would be misleading.
I’d like to add a source annotation on the operation, such as
x-spectral-disabled: [ operation-2xx-response ]
as a means of turning off the rule violation. (This will help support our goal of “spectral clean” APi definition documents.)