OpenAPI Request Body Content On Put Error (Edit)

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

OpenAPIRequest BodiesPUT

Rule Definition

openapi-request-bodies-content-put-error.yaml
{"openapi-request-bodies-content-put-error":{"description":"PUT 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 PUT","given":"$.paths.*.put.requestBody","severity":"error","then":{"field":"content","function":"truthy"}}}

Back to All of the Rules