OpenAPI Response Get 200 Media Type Schema Error (Edit)

GET 200 success HTTP status codes have a schema to standardize the response payload returned for a successful response

OpenAPIResponsesGET2xxMedia TypesSchema

Rule Definition

openapi-response-get-200-media-type-schema-error.yaml
{"openapi-response-get-200-media-type-schema-error":{"description":"GET 200 success HTTP status codes have a schema to standardize the response payload returned for a successful response","message":"GET 200 Response MUST Have Schema","severity":"error","given":"$.paths.*.get.responses.200.content['application/json']","then":{"field":"schema","function":"truthy"}}}

Back to All of the Rules