Skip to content

Commit

Permalink
fix: force object type for message trait's headers (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu authored Mar 7, 2022
1 parent 9c70708 commit 5df8873
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 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
10 changes: 7 additions & 3 deletions schemas/2.2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,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 5df8873

Please sign in to comment.