OpenAPI Response Get 200 Media Type Schema Ref Error (Edit)

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

OpenAPIResponsesGET2xxMedia TypesSchema

Rule Definition

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

Back to All of the Rules