From e541cb64118caba825ef8ab4ac6da50dd1eb712c Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Thu, 25 Jan 2024 12:01:42 -1000 Subject: [PATCH] add schemas --- definitions/3.0.0/messageBindingsObject.json | 15 ++++++++++++++- definitions/3.0.0/operationBindingsObject.json | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/definitions/3.0.0/messageBindingsObject.json b/definitions/3.0.0/messageBindingsObject.json index 44266860..142fcd98 100644 --- a/definitions/3.0.0/messageBindingsObject.json +++ b/definitions/3.0.0/messageBindingsObject.json @@ -11,7 +11,7 @@ "http": { "properties": { "bindingVersion": { - "enum": ["0.2.0"] + "enum": ["0.2.0", "0.3.0"] } }, "allOf": [ @@ -40,6 +40,19 @@ "then": { "$ref": "http://asyncapi.com/bindings/http/0.2.0/message.json" } + }, + { + "if": { + "required": [ "bindingVersion" ], + "properties": { + "bindingVersion": { + "const": "0.3.0" + } + } + }, + "then": { + "$ref": "http://asyncapi.com/bindings/http/0.3.0/message.json" + } } ] }, diff --git a/definitions/3.0.0/operationBindingsObject.json b/definitions/3.0.0/operationBindingsObject.json index af9e550b..6a43fa62 100644 --- a/definitions/3.0.0/operationBindingsObject.json +++ b/definitions/3.0.0/operationBindingsObject.json @@ -11,7 +11,7 @@ "http": { "properties": { "bindingVersion": { - "enum": ["0.2.0"] + "enum": ["0.2.0", "0.3.0"] } }, "allOf": [ @@ -40,6 +40,19 @@ "then": { "$ref": "http://asyncapi.com/bindings/http/0.2.0/operation.json" } + }, + { + "if": { + "required": [ "bindingVersion" ], + "properties": { + "bindingVersion": { + "const": "0.3.0" + } + } + }, + "then": { + "$ref": "http://asyncapi.com/bindings/http/0.3.0/operation.json" + } } ] },