OpenAPI No Request Body On Get Error (Edit)

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

OpenAPIRequest BodiesGETDefault

Rule Definition

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

Back to All of the Rules