Skip to content

Commit

Permalink
feat: let channels be identified by ID. Address is now moved into a n…
Browse files Browse the repository at this point in the history
…ew field
  • Loading branch information
smoya committed Jul 19, 2022
1 parent 869e8c6 commit bbd9c4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions definitions/3.0.0/channelItem.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"type": "object",
"required": [
"address"
],
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
Expand All @@ -10,6 +13,11 @@
"$ref": {
"$ref": "http://asyncapi.com/definitions/3.0.0/ReferenceObject.json"
},
"address": {
"type": "string",
"format": "uri-template",
"minLength": 1
},
"parameters": {
"type": "object",
"additionalProperties": {
Expand Down
5 changes: 0 additions & 5 deletions definitions/3.0.0/channels.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"type": "object",
"propertyNames": {
"type": "string",
"format": "uri-template",
"minLength": 1
},
"additionalProperties": {
"$ref": "http://asyncapi.com/definitions/3.0.0/channelItem.json"
},
Expand Down

0 comments on commit bbd9c4e

Please sign in to comment.