We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f61b1a commit 14f4c0bCopy full SHA for 14f4c0b
src/plugins/json-schema-validator/oas3-schema.yaml
@@ -602,9 +602,16 @@ definitions:
602
- $ref: "#/definitions/Reference"
603
patternProperties:
604
"^[1-5](?:\\d{2}|XX)$":
605
- oneOf:
606
- - $ref: "#/definitions/Response"
607
- - $ref: "#/definitions/Reference"
+ switch:
+ - if:
+ required: [$ref]
608
+ then:
609
+ $ref: "#/definitions/Reference"
610
+ - then:
611
+ $ref: "#/definitions/Response"
612
+ # oneOf:
613
+ # - $ref: "#/definitions/Response"
614
+ # - $ref: "#/definitions/Reference"
615
"^x-": {}
616
minProperties: 1
617
additionalProperties: false
0 commit comments