From 81b53c4fab68f03aa508c0efddf44858f5d42a66 Mon Sep 17 00:00:00 2001 From: Laurent Broudoux Date: Tue, 28 Nov 2023 16:40:08 -0600 Subject: [PATCH] feat: adapt Kafka bindings to v3 - take 2 (#453) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fran Méndez --- definitions/3.0.0/messageBindingsObject.json | 15 +-------------- definitions/3.0.0/operationBindingsObject.json | 15 +-------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/definitions/3.0.0/messageBindingsObject.json b/definitions/3.0.0/messageBindingsObject.json index fc2e6fc9..0bbb1e11 100644 --- a/definitions/3.0.0/messageBindingsObject.json +++ b/definitions/3.0.0/messageBindingsObject.json @@ -119,7 +119,7 @@ "kafka": { "properties": { "bindingVersion": { - "enum": ["0.4.0", "0.3.0", "0.1.0"] + "enum": ["0.4.0", "0.3.0"] } }, "allOf": [ @@ -161,19 +161,6 @@ "then": { "$ref": "http://asyncapi.com/bindings/kafka/0.3.0/message.json" } - }, - { - "if": { - "required": [ "bindingVersion" ], - "properties": { - "bindingVersion": { - "const": "0.1.0" - } - } - }, - "then": { - "$ref": "http://asyncapi.com/bindings/kafka/0.1.0/message.json" - } } ] }, diff --git a/definitions/3.0.0/operationBindingsObject.json b/definitions/3.0.0/operationBindingsObject.json index ee31a2bb..5ed6837f 100644 --- a/definitions/3.0.0/operationBindingsObject.json +++ b/definitions/3.0.0/operationBindingsObject.json @@ -119,7 +119,7 @@ "kafka": { "properties": { "bindingVersion": { - "enum": ["0.4.0", "0.3.0", "0.1.0"] + "enum": ["0.4.0", "0.3.0"] } }, "allOf": [ @@ -161,19 +161,6 @@ "then": { "$ref": "http://asyncapi.com/bindings/kafka/0.3.0/operation.json" } - }, - { - "if": { - "required": [ "bindingVersion" ], - "properties": { - "bindingVersion": { - "const": "0.1.0" - } - } - }, - "then": { - "$ref": "http://asyncapi.com/bindings/kafka/0.1.0/operation.json" - } } ] },