Openapi Response Get 200 Schema Ref Warn (Edit)

Warn GET response 200 schema should have $ref.

Rule Definition

openapi-response-get-200-schema-ref-warn.yaml
{ "openapi-response-get-200-schema-ref-warn": {"description":"Warn GET response 200 schema should have $ref.","message":"GET Response 200 Schema Ref","given":"$.paths.*.get.responses.200.content.*.schema[?(@.allOf && @.anyOf && @.oneOf)]","severity":"warn","then":{"field":"$ref","function":"truthy"}} }

Back to All of the Rules