OpenAPI Request Body Content On Post Error (Edit)

POST requests with a request body should have content defined, providing more detail on what is contained within the API request body

OpenAPIRequest BodiesPOST

Rule Definition

openapi-request-bodies-content-post-error.yaml
{"openapi-request-bodies-content-post-error":{"description":"POST requests with a request body should have content defined, providing more detail on what is contained within the API request body","message":"Request Body Content POST","given":"$.paths.*.post.requestBody","severity":"error","then":{"field":"content","function":"truthy"}}}

Back to All of the Rules