Openapi Response Post 201 Media Type Info (Edit)

Require JSON media type for POST response.

Rule Definition

openapi-response-post-201-media-type-info.yaml
{ "openapi-response-post-201-media-type-info": {"severity":"info","description":"Require JSON media type for POST response.","message":"JSON Media Type POST","given":"$.paths.*.post.responses.201.content","then":{"field":"application/json","function":"falsy"}} }

Back to All of the Rules