From 63bd0f78bb8676288f973d195c87d10d648671ee Mon Sep 17 00:00:00 2001 From: mastdev Date: Tue, 18 Oct 2022 23:50:08 +0530 Subject: [PATCH 1/2] fix references --- definitions/2.5.0/parameter.json | 3 --- definitions/2.5.0/parameters.json | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/definitions/2.5.0/parameter.json b/definitions/2.5.0/parameter.json index 3e8d466e..8feb89c1 100644 --- a/definitions/2.5.0/parameter.json +++ b/definitions/2.5.0/parameter.json @@ -17,9 +17,6 @@ "type": "string", "description": "A runtime expression that specifies the location of the parameter value", "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - }, - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.5.0/ReferenceObject.json" } }, "$schema": "http://json-schema.org/draft-07/schema#", diff --git a/definitions/2.5.0/parameters.json b/definitions/2.5.0/parameters.json index 6c4c7549..5f10da7b 100644 --- a/definitions/2.5.0/parameters.json +++ b/definitions/2.5.0/parameters.json @@ -1,7 +1,11 @@ { "type": "object", "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.5.0/parameter.json" + "oneOf": [ + { + "$ref": "http://asyncapi.com/definitions/2.5.0/parameter.json" + } + ] }, "description": "JSON objects describing re-usable channel parameters.", "$schema": "http://json-schema.org/draft-07/schema#", From cdee75ef79967df52f1a97c3748581e3a5f62679 Mon Sep 17 00:00:00 2001 From: mastdev Date: Thu, 27 Oct 2022 12:00:17 +0530 Subject: [PATCH 2/2] update references in parameters.json --- definitions/2.5.0/parameters.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/definitions/2.5.0/parameters.json b/definitions/2.5.0/parameters.json index 5f10da7b..0b427834 100644 --- a/definitions/2.5.0/parameters.json +++ b/definitions/2.5.0/parameters.json @@ -2,6 +2,9 @@ "type": "object", "additionalProperties": { "oneOf": [ + { + "$ref": "http://asyncapi.com/definitions/2.5.0/Reference.json" + }, { "$ref": "http://asyncapi.com/definitions/2.5.0/parameter.json" }