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

Warn JSON media type on POST.

Rule Definition

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

Back to All of the Rules