diff --git a/schemas/2.3.0.json b/schemas/2.3.0.json index 6352648e..54d1050a 100644 --- a/schemas/2.3.0.json +++ b/schemas/2.3.0.json @@ -30,10 +30,7 @@ "$ref": "#/definitions/info" }, "servers": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/server" - } + "$ref": "#/definitions/servers" }, "defaultContentType": { "type": "string" @@ -162,10 +159,10 @@ "server": { "type": "object", "description": "An object representing a Server.", - "required": [ - "url", - "protocol" - ], + "anyOf" : [ + { "required" : ["url", "protocol"] }, + { "required" : ["$ref"] } + ], "additionalProperties": false, "patternProperties": { "^x-[\\w\\d\\.\\-\\_]+$": { @@ -173,6 +170,9 @@ } }, "properties": { + "$ref": { + "$ref": "#/definitions/ReferenceObject" + }, "url": { "type": "string" }, @@ -200,6 +200,12 @@ } } }, + "servers": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/server" + } + }, "serverVariables": { "type": "object", "additionalProperties": { @@ -261,6 +267,12 @@ "schemas": { "$ref": "#/definitions/schemas" }, + "servers": { + "$ref": "#/definitions/servers" + }, + "channels": { + "$ref": "#/definitions/channels" + }, "messages": { "$ref": "#/definitions/messages" },