OpenAPI Request Body Content On Post Info (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-info.yaml
{"openapi-request-bodies-content-post-info":{"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":"info","then":{"field":"content","function":"falsy"}}}

Back to All of the Rules