redocly-cli
redocly-cli copied to clipboard
`operation-4xx-response` rule evaluates webhooks
Describe the bug
The operation-4xx-response rule evaluates webhooks (and x-webhooks), and that doesn't make sense because of the nature of webhooks (asking clients to implement an API to receive notifications is a big enough ask, let alone to ask them to implement error handling and some error response codes and schemas). Those should be skipped.
To Reproduce
Pull rebilly/api-definitions. Run openapi lint.
Expected behavior
Don't evaluate webhooks (or x-webhooks).
Logs n/a
OpenAPI definition 3.0
openapi-cli Version(s)
1.0.0-beta.80
Node.js Version(s)
16.10
Additional context
Trying to make the rules make the most sense out of the box.