Skip to content

Commit 728f63c

Browse files
authored
fix: enable $ref support for bindings (#442)
1 parent 3df2a2e commit 728f63c

File tree

6 files changed

+48
-6
lines changed

6 files changed

+48
-6
lines changed

definitions/3.0.0/channel.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@
6262
]
6363
},
6464
"bindings": {
65-
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
65+
"oneOf": [
66+
{
67+
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
68+
},
69+
{
70+
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
71+
}
72+
]
6673
}
6774
},
6875
"$schema": "http://json-schema.org/draft-07/schema#",

definitions/3.0.0/messageObject.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,14 @@
107107
}
108108
},
109109
"bindings": {
110-
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
110+
"oneOf": [
111+
{
112+
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
113+
},
114+
{
115+
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
116+
}
117+
]
111118
},
112119
"traits": {
113120
"type": "array",

definitions/3.0.0/messageTrait.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@
7474
}
7575
},
7676
"bindings": {
77-
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
77+
"oneOf": [
78+
{
79+
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
80+
},
81+
{
82+
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
83+
}
84+
]
7885
}
7986
},
8087
"$schema": "http://json-schema.org/draft-07/schema#",

definitions/3.0.0/operation.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,14 @@
8888
]
8989
},
9090
"bindings": {
91-
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
91+
"oneOf": [
92+
{
93+
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
94+
},
95+
{
96+
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
97+
}
98+
]
9299
}
93100
},
94101
"$schema": "http://json-schema.org/draft-07/schema#",

definitions/3.0.0/operationTrait.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@
2626
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/externalDocs"
2727
},
2828
"bindings": {
29-
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/bindings"
29+
"oneOf": [
30+
{
31+
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
32+
},
33+
{
34+
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
35+
}
36+
]
3037
}
3138
},
3239
"$schema": "http://json-schema.org/draft-07/schema#",

definitions/3.0.0/server.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@
7070
]
7171
},
7272
"bindings": {
73-
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
73+
"oneOf": [
74+
{
75+
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
76+
},
77+
{
78+
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
79+
}
80+
]
7481
}
7582
},
7683
"$schema": "http://json-schema.org/draft-07/schema#",

0 commit comments

Comments
 (0)