From ae9e8c369dbb27501ce08cbc7a2bb0875def217e Mon Sep 17 00:00:00 2001 From: derberg Date: Mon, 11 Dec 2023 11:51:59 +0100 Subject: [PATCH] fix: make `key` in kafka msg binding validate as anyOf --- bindings/kafka/0.4.0/message.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/kafka/0.4.0/message.json b/bindings/kafka/0.4.0/message.json index bee7dc46..173a9bad 100644 --- a/bindings/kafka/0.4.0/message.json +++ b/bindings/kafka/0.4.0/message.json @@ -11,12 +11,15 @@ }, "properties": { "key": { - "oneOf": [ + "anyOf": [ { "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" } ], "description": "The message key."