Skip to content

Commit

Permalink
Merge branch 'master' into fix/494
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakisan authored Mar 15, 2024
2 parents 981c80d + 0ec5d64 commit 212cc82
Show file tree
Hide file tree
Showing 8 changed files with 733 additions and 65 deletions.
17 changes: 15 additions & 2 deletions definitions/3.0.0/channelBindingsObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"kafka": {
"properties": {
"bindingVersion": {
"enum": ["0.4.0", "0.3.0"]
"enum": ["0.5.0", "0.4.0", "0.3.0"]
}
},
"allOf": [
Expand All @@ -98,7 +98,20 @@
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.4.0/channel.json"
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/channel.json"
}
},
{
"if": {
"required": [ "bindingVersion" ],
"properties": {
"bindingVersion": {
"const": "0.5.0"
}
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/channel.json"
}
},
{
Expand Down
21 changes: 17 additions & 4 deletions definitions/3.0.0/messageBindingsObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/http/0.2.0/message.json"
"$ref": "http://asyncapi.com/bindings/http/0.3.0/message.json"
}
},
{
Expand Down Expand Up @@ -131,7 +131,7 @@
"kafka": {
"properties": {
"bindingVersion": {
"enum": ["0.4.0", "0.3.0"]
"enum": ["0.5.0", "0.4.0", "0.3.0"]
}
},
"allOf": [
Expand All @@ -145,7 +145,20 @@
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.4.0/message.json"
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/message.json"
}
},
{
"if": {
"required": [ "bindingVersion" ],
"properties": {
"bindingVersion": {
"const": "0.5.0"
}
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/message.json"
}
},
{
Expand Down Expand Up @@ -325,4 +338,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
}
19 changes: 16 additions & 3 deletions definitions/3.0.0/operationBindingsObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/http/0.2.0/operation.json"
"$ref": "http://asyncapi.com/bindings/http/0.3.0/operation.json"
}
},
{
Expand Down Expand Up @@ -145,7 +145,20 @@
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.4.0/operation.json"
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/operation.json"
}
},
{
"if": {
"required": [ "bindingVersion" ],
"properties": {
"bindingVersion": {
"const": "0.5.0"
}
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/operation.json"
}
},
{
Expand Down Expand Up @@ -351,4 +364,4 @@
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
}
15 changes: 14 additions & 1 deletion definitions/3.0.0/serverBindingsObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,20 @@
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.4.0/server.json"
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/server.json"
}
},
{
"if": {
"required": [ "bindingVersion" ],
"properties": {
"bindingVersion": {
"const": "0.5.0"
}
}
},
"then": {
"$ref": "http://asyncapi.com/bindings/kafka/0.5.0/server.json"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/specs",
"version": "6.5.0",
"version": "6.5.3",
"description": "AsyncAPI schema versions",
"main": "index.js",
"types": "index.d.ts",
Expand Down
Loading

0 comments on commit 212cc82

Please sign in to comment.