Skip to content

Commit

Permalink
feat: add specific binding schemas (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni authored Jul 8, 2022
1 parent a9eb9a9 commit 4e53622
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 8 deletions.
29 changes: 29 additions & 0 deletions definitions/3.0.0/channelBindingsObject.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\-\\_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"properties": {
"http": {},
"ws": {},
"amqp": {},
"amqp1": {},
"mqtt": {},
"mqtt5": {},
"kafka": {},
"anypointmq": {},
"nats": {},
"jms": {},
"sns": {},
"sqs": {},
"stomp": {},
"redis": {},
"ibmmq": {},
"solace": {}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
}
2 changes: 1 addition & 1 deletion definitions/3.0.0/channelItem.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"default": false
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/channelBindingsObject.json"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion definitions/3.0.0/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
},
"traits": {
"type": "array",
Expand Down
29 changes: 29 additions & 0 deletions definitions/3.0.0/messageBindingsObject.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\-\\_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"properties": {
"http": {},
"ws": {},
"amqp": {},
"amqp1": {},
"mqtt": {},
"mqtt5": {},
"kafka": {},
"anypointmq": {},
"nats": {},
"jms": {},
"sns": {},
"sqs": {},
"stomp": {},
"redis": {},
"ibmmq": {},
"solace": {}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
2 changes: 1 addition & 1 deletion definitions/3.0.0/messageTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/messageBindingsObject.json"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion definitions/3.0.0/operation.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"type": "string"
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
},
"message": {
"$ref": "http://asyncapi.com/definitions/3.0.0/message.json"
Expand Down
29 changes: 29 additions & 0 deletions definitions/3.0.0/operationBindingsObject.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\-\\_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"properties": {
"http": {},
"ws": {},
"amqp": {},
"amqp1": {},
"mqtt": {},
"mqtt5": {},
"kafka": {},
"anypointmq": {},
"nats": {},
"jms": {},
"sns": {},
"sqs": {},
"stomp": {},
"redis": {},
"ibmmq": {},
"solace": {}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
2 changes: 1 addition & 1 deletion definitions/3.0.0/operationTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/operationBindingsObject.json"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion definitions/3.0.0/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
},
"bindings": {
"$ref": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$ref": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"type": "object",
"additionalProperties": true,
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\-\\_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"properties": {
"http": {},
"ws": {},
Expand All @@ -20,5 +25,5 @@
"solace": {}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/bindingsObject.json"
"$id": "http://asyncapi.com/definitions/3.0.0/serverBindingsObject.json"
}

0 comments on commit 4e53622

Please sign in to comment.