Skip to content

Commit

Permalink
fix: force object type for message trait's headers
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Sep 23, 2021
1 parent 1f1d554 commit 08cbcf3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions schemas/2.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -869,12 +869,16 @@
"type": "string"
},
"headers": {
"oneOf": [
"allOf": [
{
"$ref": "#/definitions/Reference"
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/schema"
"properties": {
"type": {
"const": "object"
}
}
}
]
},
Expand Down
10 changes: 7 additions & 3 deletions schemas/2.1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,12 +882,16 @@
"type": "string"
},
"headers": {
"oneOf": [
"allOf": [
{
"$ref": "#/definitions/Reference"
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/schema"
"properties": {
"type": {
"const": "object"
}
}
}
]
},
Expand Down

0 comments on commit 08cbcf3

Please sign in to comment.