Skip to content

Commit

Permalink
fix: allow references in parameters and server variables (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu authored Feb 7, 2023
1 parent 0bcbece commit 40257df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
5 changes: 1 addition & 4 deletions definitions/3.0.0/channel.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/channelMessages.json"
},
"parameters": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/parameter.json"
}
"$ref": "http://asyncapi.com/definitions/3.0.0/parameters.json"
},
"title": {
"type": "string",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/parameters.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/parameter.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/parameter.json"
}
]
},
"description": "JSON objects describing re-usable channel parameters.",
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/serverVariables.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/serverVariable.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/serverVariable.json"
}
]
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/serverVariables.json"
Expand Down

0 comments on commit 40257df

Please sign in to comment.