diff --git a/schemas/v2.0/schema.json b/schemas/v2.0/schema.json index e63aef6334..9080fd2231 100644 --- a/schemas/v2.0/schema.json +++ b/schemas/v2.0/schema.json @@ -171,7 +171,14 @@ "$ref": "#/definitions/vendorExtension" }, "^/": { - "$ref": "#/definitions/pathItem" + "oneOf": [ + { + "$ref": "#/definitions/pathItem" + }, + { + "$ref": "#/definitions/jsonReference" + } + ] } }, "additionalProperties": false @@ -179,7 +186,14 @@ "definitions": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/schema" + "oneOf": [ + { + "$ref": "#/definitions/schema" + }, + { + "$ref": "#/definitions/jsonReference" + } + ] }, "description": "One or more JSON objects describing the schemas being consumed and produced by the API." }, @@ -296,9 +310,6 @@ } }, "properties": { - "$ref": { - "type": "string" - }, "get": { "$ref": "#/definitions/operation" }, @@ -374,6 +385,9 @@ }, { "$ref": "#/definitions/fileSchema" + }, + { + "$ref": "#/definitions/jsonReference" } ] }, @@ -511,7 +525,14 @@ "default": false }, "schema": { - "$ref": "#/definitions/schema" + "oneOf": [ + { + "$ref": "#/definitions/schema" + }, + { + "$ref": "#/definitions/jsonReference" + } + ] } }, "additionalProperties": false @@ -925,9 +946,6 @@ } }, "properties": { - "$ref": { - "type": "string" - }, "format": { "type": "string" }, @@ -990,6 +1008,9 @@ { "$ref": "#/definitions/schema" }, + { + "$ref": "#/definitions/jsonReference" + }, { "type": "boolean" } @@ -1004,11 +1025,21 @@ { "$ref": "#/definitions/schema" }, + { + "$ref": "#/definitions/jsonReference" + }, { "type": "array", "minItems": 1, "items": { - "$ref": "#/definitions/schema" + "oneOf": [ + { + "$ref": "#/definitions/schema" + }, + { + "$ref": "#/definitions/jsonReference" + } + ] } } ], @@ -1018,13 +1049,27 @@ "type": "array", "minItems": 1, "items": { - "$ref": "#/definitions/schema" + "oneOf": [ + { + "$ref": "#/definitions/schema" + }, + { + "$ref": "#/definitions/jsonReference" + } + ] } }, "properties": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/schema" + "oneOf": [ + { + "$ref": "#/definitions/schema" + }, + { + "$ref": "#/definitions/jsonReference" + } + ] }, "default": {} }, @@ -1580,7 +1625,6 @@ "required": [ "$ref" ], - "additionalProperties": false, "properties": { "$ref": { "type": "string" @@ -1588,4 +1632,4 @@ } } } -} \ No newline at end of file +}