From b34fce995a52764e54d27c5372078602e3fcbdfb Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Thu, 23 Sep 2021 12:25:12 +0200 Subject: [PATCH 1/2] fix: force object type for message trait's headers --- schemas/2.0.0.json | 10 +++++++--- schemas/2.1.0.json | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/schemas/2.0.0.json b/schemas/2.0.0.json index e90ca2b8..6fe08f46 100644 --- a/schemas/2.0.0.json +++ b/schemas/2.0.0.json @@ -869,12 +869,16 @@ "type": "string" }, "headers": { - "oneOf": [ + "allOf": [ { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/schema" }, { - "$ref": "#/definitions/schema" + "properties": { + "type": { + "const": "object" + } + } } ] }, diff --git a/schemas/2.1.0.json b/schemas/2.1.0.json index ff39f28b..004a3f48 100644 --- a/schemas/2.1.0.json +++ b/schemas/2.1.0.json @@ -882,12 +882,16 @@ "type": "string" }, "headers": { - "oneOf": [ + "allOf": [ { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/schema" }, { - "$ref": "#/definitions/schema" + "properties": { + "type": { + "const": "object" + } + } } ] }, From ddf8f15f637a68ef4f67a450a70a700caaf8a4df Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Tue, 18 Jan 2022 15:09:41 +0100 Subject: [PATCH 2/2] fix 2.2.0 version --- schemas/2.2.0.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/schemas/2.2.0.json b/schemas/2.2.0.json index ccfa48b3..d2d04896 100644 --- a/schemas/2.2.0.json +++ b/schemas/2.2.0.json @@ -891,12 +891,16 @@ "type": "string" }, "headers": { - "oneOf": [ + "allOf": [ { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/schema" }, { - "$ref": "#/definitions/schema" + "properties": { + "type": { + "const": "object" + } + } } ] },