OpenAPI Request Body Have Schema Ref Info (Edit)

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

OpenAPIRequest BodiesSchema

Rule Definition

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

Back to All of the Rules