OpenAPI Request Body Have Examples Error (Edit)

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

OpenAPIRequest BodiesExamples

Rule Definition

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

Back to All of the Rules