Skip to content

Commit

Permalink
fix: enable $ref support for bindings (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Nov 13, 2023
1 parent 3df2a2e commit 728f63c
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 6 deletions.
9 changes: 8 additions & 1 deletion definitions/3.0.0/channel.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/messageObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
]
},
"traits": {
"type": "array",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/messageTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/operationTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/externalDocs"
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/bindings"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down

0 comments on commit 728f63c

Please sign in to comment.