Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add binding validation #239

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/bindings/amqp/channel.json",
"$id": "http://asyncapi.com/bindings/amqp/0.2.0/channel.json",
"title": "AMQP channel bindings object",
"description": "This object contains information about the channel representation in AMQP.",
"type": "object",
Expand Down Expand Up @@ -80,7 +80,6 @@
],
"description": "The version of this binding. If omitted, 'latest' MUST be assumed."
}

},
"oneOf": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/bindings/amqp/message.json",
"$id": "http://asyncapi.com/bindings/amqp/0.2.0/message.json",
"title": "AMQP message bindings object",
"description": "This object contains information about the message representation in AMQP.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/bindings/amqp/operation.json",
"$id": "http://asyncapi.com/bindings/amqp/0.2.0/operation.json",
"title": "AMQP operation bindings object",
"description": "This object contains information about the operation representation in AMQP.",
"type": "object",
Expand Down
8 changes: 7 additions & 1 deletion definitions/3.0.0/channelBindingsObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"properties": {
"http": {},
"ws": {},
"amqp": {},
"amqp": {
"oneOf": [
{
"$ref": "http://asyncapi.com/bindings/amqp/0.2.0/channel.json"
}
]
},
"amqp1": {},
"mqtt": {},
"mqtt5": {},
Expand Down
8 changes: 4 additions & 4 deletions definitions/3.0.0/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,25 @@
"serverBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
}
},
"channelBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
}
},
"operationBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
},
"messageBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
}
},
Expand Down