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" + } } ] },