OpenAPI No Request Body On Delete Error (Edit)

DELETE HTTP methods should not have a request body, keeping API requests compliant with the HTTP standard

OpenAPIRequest BodiesDELETEDefault

Rule Definition

openapi-request-bodies-delete-error.yaml
{"openapi-request-bodies-delete-error":{"description":"DELETE HTTP methods should not have a request body, keeping API requests compliant with the HTTP standard","message":"DELETE Request Body","given":"$.paths.*.delete","severity":"error","then":{"field":"requestBody","function":"falsy"}}}

Back to All of the Rules