OpenAPI Response Get 200 Media Type Error (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-error.yaml
{"openapi-response-get-200-media-type-error":{"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 MUST Have Media Type.","severity":"error","given":"$.paths.*.get.responses.200.content","then":{"field":"application/json","function":"truthy"}}}

Back to All of the Rules