Skip to content

Commit 8de66a8

Browse files
fix: make traits an array of traits or refs (#339)
1 parent 3c6af09 commit 8de66a8

File tree

18 files changed

+10
-364
lines changed

18 files changed

+10
-364
lines changed

definitions/2.0.0-rc1/message.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,6 @@
8888
},
8989
{
9090
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"
91-
},
92-
{
93-
"type": "array",
94-
"items": [
95-
{
96-
"oneOf": [
97-
{
98-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"
99-
},
100-
{
101-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"
102-
}
103-
]
104-
},
105-
{
106-
"type": "object",
107-
"additionalItems": true
108-
}
109-
]
11091
}
11192
]
11293
}

definitions/2.0.0-rc1/operation.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@
1616
},
1717
{
1818
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"
19-
},
20-
{
21-
"type": "array",
22-
"items": [
23-
{
24-
"oneOf": [
25-
{
26-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"
27-
},
28-
{
29-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"
30-
}
31-
]
32-
},
33-
{
34-
"type": "object",
35-
"additionalItems": true
36-
}
37-
]
3819
}
3920
]
4021
}

definitions/2.0.0-rc2/message.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,6 @@
9797
},
9898
{
9999
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"
100-
},
101-
{
102-
"type": "array",
103-
"items": [
104-
{
105-
"oneOf": [
106-
{
107-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"
108-
},
109-
{
110-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"
111-
}
112-
]
113-
},
114-
{
115-
"type": "object",
116-
"additionalItems": true
117-
}
118-
]
119100
}
120101
]
121102
}

definitions/2.0.0-rc2/operation.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@
1616
},
1717
{
1818
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"
19-
},
20-
{
21-
"type": "array",
22-
"items": [
23-
{
24-
"oneOf": [
25-
{
26-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"
27-
},
28-
{
29-
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"
30-
}
31-
]
32-
},
33-
{
34-
"type": "object",
35-
"additionalItems": true
36-
}
37-
]
3819
}
3920
]
4021
}

definitions/2.0.0/message.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,25 +115,6 @@
115115
},
116116
{
117117
"$ref": "http://asyncapi.com/definitions/2.0.0/messageTrait.json"
118-
},
119-
{
120-
"type": "array",
121-
"items": [
122-
{
123-
"oneOf": [
124-
{
125-
"$ref": "http://asyncapi.com/definitions/2.0.0/Reference.json"
126-
},
127-
{
128-
"$ref": "http://asyncapi.com/definitions/2.0.0/messageTrait.json"
129-
}
130-
]
131-
},
132-
{
133-
"type": "object",
134-
"additionalItems": true
135-
}
136-
]
137118
}
138119
]
139120
}

definitions/2.0.0/operation.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@
1616
},
1717
{
1818
"$ref": "http://asyncapi.com/definitions/2.0.0/operationTrait.json"
19-
},
20-
{
21-
"type": "array",
22-
"items": [
23-
{
24-
"oneOf": [
25-
{
26-
"$ref": "http://asyncapi.com/definitions/2.0.0/Reference.json"
27-
},
28-
{
29-
"$ref": "http://asyncapi.com/definitions/2.0.0/operationTrait.json"
30-
}
31-
]
32-
},
33-
{
34-
"type": "object",
35-
"additionalItems": true
36-
}
37-
]
3819
}
3920
]
4021
}

definitions/2.1.0/message.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,6 @@
135135
},
136136
{
137137
"$ref": "http://asyncapi.com/definitions/2.1.0/messageTrait.json"
138-
},
139-
{
140-
"type": "array",
141-
"items": [
142-
{
143-
"oneOf": [
144-
{
145-
"$ref": "http://asyncapi.com/definitions/2.1.0/Reference.json"
146-
},
147-
{
148-
"$ref": "http://asyncapi.com/definitions/2.1.0/messageTrait.json"
149-
}
150-
]
151-
},
152-
{
153-
"type": "object",
154-
"additionalItems": true
155-
}
156-
]
157138
}
158139
]
159140
}

definitions/2.1.0/operation.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@
1616
},
1717
{
1818
"$ref": "http://asyncapi.com/definitions/2.1.0/operationTrait.json"
19-
},
20-
{
21-
"type": "array",
22-
"items": [
23-
{
24-
"oneOf": [
25-
{
26-
"$ref": "http://asyncapi.com/definitions/2.1.0/Reference.json"
27-
},
28-
{
29-
"$ref": "http://asyncapi.com/definitions/2.1.0/operationTrait.json"
30-
}
31-
]
32-
},
33-
{
34-
"type": "object",
35-
"additionalItems": true
36-
}
37-
]
3819
}
3920
]
4021
}

definitions/2.2.0/message.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,6 @@
135135
},
136136
{
137137
"$ref": "http://asyncapi.com/definitions/2.2.0/messageTrait.json"
138-
},
139-
{
140-
"type": "array",
141-
"items": [
142-
{
143-
"oneOf": [
144-
{
145-
"$ref": "http://asyncapi.com/definitions/2.2.0/Reference.json"
146-
},
147-
{
148-
"$ref": "http://asyncapi.com/definitions/2.2.0/messageTrait.json"
149-
}
150-
]
151-
},
152-
{
153-
"type": "object",
154-
"additionalItems": true
155-
}
156-
]
157138
}
158139
]
159140
}

definitions/2.2.0/operation.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@
1616
},
1717
{
1818
"$ref": "http://asyncapi.com/definitions/2.2.0/operationTrait.json"
19-
},
20-
{
21-
"type": "array",
22-
"items": [
23-
{
24-
"oneOf": [
25-
{
26-
"$ref": "http://asyncapi.com/definitions/2.2.0/Reference.json"
27-
},
28-
{
29-
"$ref": "http://asyncapi.com/definitions/2.2.0/operationTrait.json"
30-
}
31-
]
32-
},
33-
{
34-
"type": "object",
35-
"additionalItems": true
36-
}
37-
]
3819
}
3920
]
4021
}

0 commit comments

Comments
 (0)