Openapi Response Get Default Media Type Error (Edit)

Require JSON media type for default.

Rule Definition

openapi-response-get-default-media-type-error.yaml
{ "openapi-response-get-default-media-type-error": {"description":"Require JSON media type for default.","message":"JSON Media Type Default","severity":"error","given":"$.paths.*.*.responses.default.content","then":{"field":"application/json","function":"truthy"}} }

Back to All of the Rules