Skip to content

Commit

Permalink
Merge branch 'next-major-spec' into v3-description
Browse files Browse the repository at this point in the history
  • Loading branch information
AceTheCreator authored Nov 16, 2023
2 parents fe18a3c + 6caf1dc commit e7ec972
Show file tree
Hide file tree
Showing 11 changed files with 192 additions and 21 deletions.
9 changes: 8 additions & 1 deletion definitions/3.0.0/channel.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
}
]
}
},
"example": {
Expand Down
15 changes: 15 additions & 0 deletions definitions/3.0.0/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@
}
}
},
"operations": {
"type": "object",
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json"
}
]
}
}
},
"messages": {
"type": "object",
"description": "An object to hold reusable Message Objects.",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/messageObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
]
},
"traits": {
"type": "array",
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/messageTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
]
}
},
"example": {
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
]
}
},
"example": {
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/operationTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@
},
"bindings": {
"description": "A map where the keys describe the name of the protocol and the values describe protocol-specific definitions for the operation.",
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/bindings"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
]
}
},
"example": {
Expand Down
9 changes: 8 additions & 1 deletion definitions/3.0.0/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
}
]
}
},
"example": {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/specs",
"version": "6.0.0-next-major-spec.11",
"version": "6.0.0-next-major-spec.13",
"description": "AsyncAPI schema versions",
"main": "index.js",
"types": "index.d.ts",
Expand Down
69 changes: 63 additions & 6 deletions schemas/3.0.0-without-$id.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,14 @@
]
},
"bindings": {
"$ref": "#/definitions/serverBindingsObject"
"oneOf": [
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/serverBindingsObject"
}
]
}
}
},
Expand Down Expand Up @@ -1961,7 +1968,14 @@
]
},
"bindings": {
"$ref": "#/definitions/channelBindingsObject"
"oneOf": [
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/channelBindingsObject"
}
]
}
}
},
Expand Down Expand Up @@ -2088,7 +2102,14 @@
}
},
"bindings": {
"$ref": "#/definitions/messageBindingsObject"
"oneOf": [
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/messageBindingsObject"
}
]
},
"traits": {
"type": "array",
Expand Down Expand Up @@ -3826,7 +3847,14 @@
}
},
"bindings": {
"$ref": "#/definitions/messageBindingsObject"
"oneOf": [
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/messageBindingsObject"
}
]
}
}
},
Expand Down Expand Up @@ -4953,7 +4981,14 @@
]
},
"bindings": {
"$ref": "#/definitions/operationBindingsObject"
"oneOf": [
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/operationBindingsObject"
}
]
}
}
},
Expand Down Expand Up @@ -5038,7 +5073,14 @@
"$ref": "#/definitions/operation/properties/externalDocs"
},
"bindings": {
"$ref": "#/definitions/operation/properties/bindings"
"oneOf": [
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/operationBindingsObject"
}
]
}
}
},
Expand Down Expand Up @@ -5994,6 +6036,21 @@
}
}
},
"operations": {
"type": "object",
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "#/definitions/Reference"
},
{
"$ref": "#/definitions/operation"
}
]
}
}
},
"messages": {
"type": "object",
"patternProperties": {
Expand Down
69 changes: 63 additions & 6 deletions schemas/3.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
}
]
}
}
},
Expand Down Expand Up @@ -2006,7 +2013,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
}
]
}
}
},
Expand Down Expand Up @@ -2135,7 +2149,14 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
]
},
"traits": {
"type": "array",
Expand Down Expand Up @@ -3889,7 +3910,14 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
]
}
}
},
Expand Down Expand Up @@ -5029,7 +5057,14 @@
]
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
]
}
}
},
Expand Down Expand Up @@ -5117,7 +5152,14 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/externalDocs"
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json#/properties/bindings"
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
]
}
}
},
Expand Down Expand Up @@ -6084,6 +6126,21 @@
}
}
},
"operations": {
"type": "object",
"patternProperties": {
"^[\\w\\d\\.\\-_]+$": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/operation.json"
}
]
}
}
},
"messages": {
"type": "object",
"patternProperties": {
Expand Down

0 comments on commit e7ec972

Please sign in to comment.