OpenAPI Response Get 200 Media Type Info (Edit)

GET 200 success HTTP status codes have a application/json media type, standardizing the response payload returned for a successful response

OpenAPIResponsesGET2xxMedia Types

Rule Definition

openapi-response-get-200-media-type-info.yaml
{"openapi-response-get-200-media-type-info":{"description":"GET 200 success HTTP status codes have a application/json media type, standardizing the response payload returned for a successful response","message":"GET 200 Response Has Media Type.","severity":"info","given":"$.paths.*.get.responses.200.content","then":{"field":"application/json","function":"falsy"}}}

Back to All of the Rules