Skip to content

Commit

Permalink
fix ref versions
Browse files Browse the repository at this point in the history
  • Loading branch information
adam.gloyne committed Jun 27, 2024
1 parent ff59ac9 commit 924a41a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 deletions.
8 changes: 4 additions & 4 deletions bindings/sns/0.2.0/channel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/bindings/sns/0.1.0/channel.json",
"$id": "http://asyncapi.com/bindings/sns/0.2.0/channel.json",
"title": "Channel Schema",
"description": "This object contains information about the channel representation in SNS.",
"type": "object",
Expand All @@ -16,10 +16,10 @@
"description": "The name of the topic. Can be different from the channel name to allow flexibility around AWS resource naming limitations."
},
"ordering": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/channel.json#/definitions/ordering"
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/channel.json#/definitions/ordering"
},
"policy": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/channel.json#/definitions/policy"
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/channel.json#/definitions/policy"
},
"tags": {
"type": "object",
Expand Down Expand Up @@ -74,7 +74,7 @@
"type": "array",
"description": "An array of statement objects, each of which controls a permission for this topic",
"items": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/channel.json#/definitions/statement"
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/channel.json#/definitions/statement"
}
}
},
Expand Down
16 changes: 8 additions & 8 deletions bindings/sns/0.2.0/operation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/bindings/sns/0.1.0/operation.json",
"$id": "http://asyncapi.com/bindings/sns/0.2.0/operation.json",
"title": "Operation Schema",
"description": "This object contains information about the operation representation in SNS.",
"type": "object",
Expand All @@ -12,19 +12,19 @@
},
"properties": {
"topic": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/operation.json#/definitions/identifier",
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/operation.json#/definitions/identifier",
"description": "Often we can assume that the SNS Topic is the channel name-we provide this field in case the you need to supply the ARN, or the Topic name is not the channel name in the AsyncAPI document."
},
"consumers": {
"type": "array",
"description": "The protocols that listen to this topic and their endpoints.",
"items": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/operation.json#/definitions/consumer"
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/operation.json#/definitions/consumer"
},
"minItems": 1
},
"deliveryPolicy": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/operation.json#/definitions/deliveryPolicy",
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/operation.json#/definitions/deliveryPolicy",
"description": "Policy for retries to HTTP. The field is the default for HTTP receivers of the SNS Topic which may be overridden by a specific consumer."
},
"bindingVersion": {
Expand Down Expand Up @@ -92,7 +92,7 @@
},
"endpoint": {
"description": "The endpoint messages are delivered to.",
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/operation.json#/definitions/identifier"
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/operation.json#/definitions/identifier"
},
"filterPolicy": {
"type": "object",
Expand Down Expand Up @@ -133,10 +133,10 @@
"description": "If true AWS SNS attributes are removed from the body, and for SQS, SNS message attributes are copied to SQS message attributes. If false the SNS attributes are included in the body."
},
"redrivePolicy": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/operation.json#/definitions/redrivePolicy"
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/operation.json#/definitions/redrivePolicy"
},
"deliveryPolicy": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/operation.json#/definitions/deliveryPolicy",
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/operation.json#/definitions/deliveryPolicy",
"description": "Policy for retries to HTTP. The parameter is for that SNS Subscription and overrides any policy on the SNS Topic."
},
"displayName": {
Expand Down Expand Up @@ -208,7 +208,7 @@
},
"properties": {
"deadLetterQueue": {
"$ref": "http://asyncapi.com/bindings/sns/0.1.0/operation.json#/definitions/identifier",
"$ref": "http://asyncapi.com/bindings/sns/0.2.0/operation.json#/definitions/identifier",
"description": "The SQS queue to use as a dead letter queue (DLQ)."
},
"maxReceiveCount": {
Expand Down
17 changes: 9 additions & 8 deletions bindings/sqs/0.3.0/channel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/bindings/sqs/0.2.0/channel.json",
"$id": "http://asyncapi.com/bindings/sqs/0.3.0/channel.json",
"title": "Channel Schema",
"description": "This object contains information about the channel representation in SQS.",
"type": "object",
Expand All @@ -13,17 +13,18 @@
"properties": {
"queue": {
"description": "A definition of the queue that will be used as the channel.",
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/channel.json#/definitions/queue"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/channel.json#/definitions/queue"
},
"deadLetterQueue": {
"description": "A definition of the queue that will be used for un-processable messages.",
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/channel.json#/definitions/queue"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/channel.json#/definitions/queue"
},
"bindingVersion": {
"type": "string",
"enum": [
"0.1.0",
"0.2.0"
"0.2.0",
"0.3.0"
],
"description": "The version of this binding. If omitted, 'latest' MUST be assumed.",
"default": "latest"
Expand Down Expand Up @@ -90,10 +91,10 @@
"default": 345600
},
"redrivePolicy": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/channel.json#/definitions/redrivePolicy"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/channel.json#/definitions/redrivePolicy"
},
"policy": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/channel.json#/definitions/policy"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/channel.json#/definitions/policy"
},
"tags": {
"type": "object",
Expand All @@ -115,7 +116,7 @@
},
"properties": {
"deadLetterQueue": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/channel.json#/definitions/identifier"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/channel.json#/definitions/identifier"
},
"maxReceiveCount": {
"type": "integer",
Expand Down Expand Up @@ -159,7 +160,7 @@
"type": "array",
"description": "An array of statement objects, each of which controls a permission for this queue.",
"items": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/channel.json#/definitions/statement"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/channel.json#/definitions/statement"
}
}
},
Expand Down
15 changes: 8 additions & 7 deletions bindings/sqs/0.3.0/operation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/bindings/sqs/0.2.0/operation.json",
"$id": "http://asyncapi.com/bindings/sqs/0.3.0/operation.json",
"title": "Operation Schema",
"description": "This object contains information about the operation representation in SQS.",
"type": "object",
Expand All @@ -15,14 +15,15 @@
"type": "array",
"description": "Queue objects that are either the endpoint for an SNS Operation Binding Object, or the deadLetterQueue of the SQS Operation Binding Object.",
"items": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/operation.json#/definitions/queue"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/operation.json#/definitions/queue"
}
},
"bindingVersion": {
"type": "string",
"enum": [
"0.1.0",
"0.2.0"
"0.2.0",
"0.3.0"
],
"description": "The version of this binding. If omitted, 'latest' MUST be assumed.",
"default": "latest"
Expand Down Expand Up @@ -93,10 +94,10 @@
"default": 345600
},
"redrivePolicy": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/operation.json#/definitions/redrivePolicy"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/operation.json#/definitions/redrivePolicy"
},
"policy": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/operation.json#/definitions/policy"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/operation.json#/definitions/policy"
},
"tags": {
"type": "object",
Expand All @@ -117,7 +118,7 @@
},
"properties": {
"deadLetterQueue": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/operation.json#/definitions/identifier"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/operation.json#/definitions/identifier"
},
"maxReceiveCount": {
"type": "integer",
Expand Down Expand Up @@ -161,7 +162,7 @@
"type": "array",
"description": "An array of statement objects, each of which controls a permission for this queue.",
"items": {
"$ref": "http://asyncapi.com/bindings/sqs/0.2.0/operation.json#/definitions/statement"
"$ref": "http://asyncapi.com/bindings/sqs/0.3.0/operation.json#/definitions/statement"
}
}
},
Expand Down

0 comments on commit 924a41a

Please sign in to comment.