Openapi Request Body Json Media Type On Put Error (Edit)

Requires request body content on PUT.

Rule Definition

openapi-request-body-json-media-type-on-put-error.yaml
{ "openapi-request-body-json-media-type-on-put-error": {"description":"Requires request body content on PUT.","message":"JSON Media Type POSPUTT","given":"$.paths.*.put.requestBody.content","severity":"info","then":{"field":"application/json","function":"falsy"}} }

Back to All of the Rules