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 Jan 18, 2022
1 parent 40f19b3 commit b34fce9
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 b34fce9

Please sign in to comment.