Skip to content

Commit

Permalink
fix: inconsistancy in components (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni authored Jun 26, 2023
1 parent 6fdb647 commit edcf7da
Showing 1 changed file with 131 additions and 17 deletions.
148 changes: 131 additions & 17 deletions definitions/3.0.0/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,64 @@
},
"properties": {
"schemas": {
"$ref": "http://asyncapi.com/definitions/3.0.0/schemas.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/schema.json"
}
]
}
}
},
"servers": {
"$ref": "http://asyncapi.com/definitions/3.0.0/servers.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/server.json"
}
]
}
}
},
"channels": {
"$ref": "http://asyncapi.com/definitions/3.0.0/channels.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/channel.json"
}
]
}
}
},
"serverVariables": {
"$ref": "http://asyncapi.com/definitions/3.0.0/serverVariables.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/serverVariable.json"
}
]
}
}
},
"messages": {
"type": "object",
Expand Down Expand Up @@ -51,7 +99,19 @@
}
},
"parameters": {
"$ref": "http://asyncapi.com/definitions/3.0.0/parameters.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/parameter.json"
}
]
}
}
},
"correlationIds": {
"type": "object",
Expand All @@ -70,14 +130,32 @@
},
"operationTraits": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operationTrait.json"
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationTrait.json"
}
]
}
}
},
"messageTraits": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageTrait.json"
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageTrait.json"
}
]
}
}
},
"replies": {
Expand Down Expand Up @@ -112,26 +190,62 @@
},
"serverBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
}
]
}
}
},
"channelBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
}
]
}
}
},
"operationBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
]
}
}
},
"messageBindings": {
"type": "object",
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
]
}
}
},
"tags": {
Expand Down

0 comments on commit edcf7da

Please sign in to comment.