Skip to content

Commit

Permalink
fix: oneOf should not be allowed in message components (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni authored Mar 14, 2023
1 parent cce9d44 commit dfd288f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion definitions/3.0.0/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,19 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/serverVariables.json"
},
"messages": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messages.json"
"type": "object",
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageObject.json"
}
]
}
}
},
"securitySchemes": {
"type": "object",
Expand Down

0 comments on commit dfd288f

Please sign in to comment.