Skip to content

Commit

Permalink
fix: make traits an array of traits or refs (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
AceTheCreator authored Mar 9, 2023
1 parent 3c6af09 commit 8de66a8
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 364 deletions.
19 changes: 0 additions & 19 deletions definitions/2.0.0-rc1/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,25 +88,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.0.0-rc1/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.0.0-rc2/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.0.0-rc2/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.0.0/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,25 +115,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0/messageTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0/messageTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.0.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0/operationTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0/operationTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.1.0/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.1.0/messageTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.1.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.1.0/messageTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.1.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.1.0/operationTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.1.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.1.0/operationTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.2.0/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.2.0/messageTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.2.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.2.0/messageTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.2.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.2.0/operationTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.2.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.2.0/operationTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.3.0/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.3.0/messageTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.3.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.3.0/messageTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.3.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.3.0/operationTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.3.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.3.0/operationTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.4.0/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.4.0/messageTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.4.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.4.0/messageTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
19 changes: 0 additions & 19 deletions definitions/2.4.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@
},
{
"$ref": "http://asyncapi.com/definitions/2.4.0/operationTrait.json"
},
{
"type": "array",
"items": [
{
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/2.4.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.4.0/operationTrait.json"
}
]
},
{
"type": "object",
"additionalItems": true
}
]
}
]
}
Expand Down
Loading

0 comments on commit 8de66a8

Please sign in to comment.