diff --git a/definitions/3.0.0/channel.json b/definitions/3.0.0/channel.json index bf715ede..17d9d9d1 100644 --- a/definitions/3.0.0/channel.json +++ b/definitions/3.0.0/channel.json @@ -15,10 +15,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/channelMessages.json" }, "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/3.0.0/parameter.json" - } + "$ref": "http://asyncapi.com/definitions/3.0.0/parameters.json" }, "title": { "type": "string", diff --git a/definitions/3.0.0/parameters.json b/definitions/3.0.0/parameters.json index 8bb0178b..19193781 100644 --- a/definitions/3.0.0/parameters.json +++ b/definitions/3.0.0/parameters.json @@ -1,7 +1,14 @@ { "type": "object", "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/3.0.0/parameter.json" + "oneOf": [ + { + "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/parameter.json" + } + ] }, "description": "JSON objects describing re-usable channel parameters.", "$schema": "http://json-schema.org/draft-07/schema#", diff --git a/definitions/3.0.0/serverVariables.json b/definitions/3.0.0/serverVariables.json index d4946d79..69015771 100644 --- a/definitions/3.0.0/serverVariables.json +++ b/definitions/3.0.0/serverVariables.json @@ -1,7 +1,14 @@ { "type": "object", "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/3.0.0/serverVariable.json" + "oneOf": [ + { + "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/serverVariable.json" + } + ] }, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://asyncapi.com/definitions/3.0.0/serverVariables.json"