OpenAPI Request Body Have Schema Info (Edit)

POST, PUT, and PATCH request bodies should have schema defined, providing more detail on what the structure of the API request body should be

OpenAPIRequest BodiesSchema

Rule Definition

openapi-request-bodies-schema-info.yaml
{"openapi-request-bodies-schema-info":{"description":"POST, PUT, and PATCH request bodies should have schema defined, providing more detail on what the structure of the API request body should be","message":"Request Body Schema","given":"$.paths.*.*.requestBody.content.*","severity":"info","then":{"field":"schema","function":"falsy"}}}

Back to All of the Rules