Skip to content

Commit

Permalink
headers def update
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg committed Apr 6, 2022
1 parent 33a7dcb commit badd082
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
10 changes: 7 additions & 3 deletions definitions/2.0.0/messageTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
"type": "string"
},
"headers": {
"oneOf": [
"allOf": [
{
"$ref": "http://asyncapi.com/definitions/2.0.0/Reference.json"
"$ref": "http://asyncapi.com/definitions/2.0.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.0.0/schema.json"
"properties": {
"type": {
"const": "object"
}
}
}
]
},
Expand Down
10 changes: 7 additions & 3 deletions definitions/2.1.0/messageTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
"type": "string"
},
"headers": {
"oneOf": [
"allOf": [
{
"$ref": "http://asyncapi.com/definitions/2.1.0/Reference.json"
"$ref": "http://asyncapi.com/definitions/2.1.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.1.0/schema.json"
"properties": {
"type": {
"const": "object"
}
}
}
]
},
Expand Down
10 changes: 7 additions & 3 deletions definitions/2.2.0/messageTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
"type": "string"
},
"headers": {
"oneOf": [
"allOf": [
{
"$ref": "http://asyncapi.com/definitions/2.2.0/Reference.json"
"$ref": "http://asyncapi.com/definitions/2.2.0/schema.json"
},
{
"$ref": "http://asyncapi.com/definitions/2.2.0/schema.json"
"properties": {
"type": {
"const": "object"
}
}
}
]
},
Expand Down

0 comments on commit badd082

Please sign in to comment.