Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(amqp): update to amqp binding 0.4.0 #1033

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.springwolf.asyncapi.v3.bindings.ChannelBinding;
import io.github.springwolf.asyncapi.v3.model.channel.ChannelReference;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand All @@ -29,6 +30,17 @@ public class AMQPChannelBinding extends ChannelBinding {
@JsonProperty("exchange")
private AMQPChannelExchangeProperties exchange;

/**
* When is=routingKey, this defines the actual routing pattern to route the message from the exchange to the queue.
*/
@JsonProperty("name")
private String name;

/**
* When is=routingKey, this defines the target queue after routing the message (essentially the binding).
*/
private ChannelReference channel;

/**
* When is=queue, this object defines the queue properties.
*/
Expand All @@ -37,5 +49,5 @@ public class AMQPChannelBinding extends ChannelBinding {

@Builder.Default
@JsonProperty(value = "bindingVersion")
private final String bindingVersion = "0.3.0";
private final String bindingVersion = "0.4.0";
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ public class AMQPMessageBinding extends MessageBinding {
*/
@Builder.Default
@JsonProperty(value = "bindingVersion")
private final String bindingVersion = "0.3.0";
private final String bindingVersion = "0.4.0";
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ public class AMQPOperationBinding extends OperationBinding {
*/
@Builder.Default
@JsonProperty("bindingVersion")
private String bindingVersion = "0.3.0";
private String bindingVersion = "0.4.0";
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ channels:
exclusive: true
autoDelete: false
vhost: /
bindingVersion: 0.3.0
bindingVersion: 0.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ channels:
durable: true
autoDelete: false
vhost: /
bindingVersion: 0.3.0
bindingVersion: 0.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ channels:
amqp:
contentEncoding: gzip
messageType: 'user.signup'
bindingVersion: 0.3.0
bindingVersion: 0.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ operations:
bcc: ['external.audit']
timestamp: true
ack: false
bindingVersion: 0.3.0
bindingVersion: 0.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
},
"bindings": {
"amqp": {
"channel": {
"$ref": "#/channels/queue-update"
},
"is": "routingKey",
"exchange": {
"name": "CRUD-topic-exchange-1",
Expand All @@ -42,7 +45,8 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"name": "#",
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -55,6 +59,9 @@
},
"bindings": {
"amqp": {
"channel": {
"$ref": "#/channels/queue-read"
},
"is": "routingKey",
"exchange": {
"name": "CRUD-topic-exchange-2",
Expand All @@ -63,7 +70,8 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"name": "#",
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -84,7 +92,7 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -100,7 +108,7 @@
"autoDelete": true,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -121,7 +129,7 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -142,6 +150,9 @@
},
"bindings": {
"amqp": {
"channel": {
"$ref": "#/channels/example-bindings-queue"
},
"is": "routingKey",
"exchange": {
"name": "example-topic-exchange",
Expand All @@ -150,7 +161,8 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"name": "example-topic-routing-key",
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -174,7 +186,7 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -195,7 +207,7 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -216,7 +228,7 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -232,7 +244,7 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -248,7 +260,7 @@
"autoDelete": false,
"vhost": "/"
},
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
}
Expand Down Expand Up @@ -426,7 +438,7 @@
"title": "AnotherPayloadDto",
"bindings": {
"amqp": {
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -444,7 +456,7 @@
"title": "ExamplePayloadDto",
"bindings": {
"amqp": {
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -462,7 +474,7 @@
"title": "GenericPayloadDtoExamplePayloadDto",
"bindings": {
"amqp": {
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -480,7 +492,7 @@
"title": "GenericPayloadDtoLong",
"bindings": {
"amqp": {
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
},
Expand All @@ -498,7 +510,7 @@
"title": "GenericPayloadDtoString",
"bindings": {
"amqp": {
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
}
}
Expand All @@ -513,7 +525,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -530,7 +542,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -547,7 +559,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -564,7 +576,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -581,7 +593,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -607,7 +619,7 @@
"bcc": [ ],
"timestamp": false,
"ack": false,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -624,7 +636,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -644,7 +656,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand All @@ -661,7 +673,7 @@
"bindings": {
"amqp": {
"expiration": 0,
"bindingVersion": "0.3.0"
"bindingVersion": "0.4.0"
}
},
"messages": [
Expand Down
Loading
Loading