Openapi Request Body Json Media Type On Post Info (Edit)

Has JSON media type on POST.

Rule Definition

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

Back to All of the Rules