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

GET 200 success HTTP status codes have example references to show one or many examples of responses for different types of API requests

OpenAPIResponsesGET2xxMedia TypesExamples

Rule Definition

openapi-response-get-200-media-type-examples-ref-error.yaml
{"openapi-response-get-200-media-type-examples-ref-error":{"description":"GET 200 success HTTP status codes have example references to show one or many examples of responses for different types of API requests","message":"GET 200 Responses MUST Use Examples Reference","severity":"error","given":"$.paths.*.get.responses.200.content['application/json'].examples.*","then":{"field":"$ref","function":"falsy"}}}

Back to All of the Rules