OpenAPI Request Body Have Examples Ref Error (Edit)

POST, PUT, and PATCH request bodies should have examples using references to centralized component examples, providing one or more examples of what should be submitted for different types of requests

OpenAPIRequest BodiesExamples

Rule Definition

openapi-request-bodies-examples-ref-error.yaml
{"openapi-request-bodies-examples-ref-error":{"description":"POST, PUT, and PATCH request bodies should have examples using references to centralized component examples, providing one or more examples of what should be submitted for different types of requests","message":"Request Bodies MUST Use Examples Reference","severity":"error","given":"$.paths.*.*.requestBody.content.*.examples","then":{"field":"$ref","function":"falsy"}}}

Back to All of the Rules