Skip to content

Commit

Permalink
feat(AsyncAPI 2.6.0): Channel - Operation
Browse files Browse the repository at this point in the history
- Fixed references to bindings docs
- Fixed bindings' description
- Fixed bindings' extending of wrong *Binding

asyncapi#126
  • Loading branch information
Pakisan committed Feb 10, 2023
1 parent 21f77fb commit 3100101
Show file tree
Hide file tree
Showing 60 changed files with 90 additions and 102 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.amqp1;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand All @@ -11,7 +11,7 @@
* Describes AMQP 1.0 channel binding.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/amqp1#channel-binding-object">AMQP channel binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/amqp1#channel-binding-object">AMQP 1.0 channel binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.googlepubsub;

import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.*;

import javax.annotation.CheckForNull;
Expand All @@ -13,15 +13,15 @@
* Describes Google Cloud Pub/Sub channel binding.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/googlepubsub">Google Cloud Pub/Sub channel binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/googlepubsub#channel-binding-object">Google Cloud Pub/Sub channel binding</a>
* @author Pavel Bodiachevskii
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class GooglePubSubChannelBinding extends MessageBinding {
public class GooglePubSubChannelBinding extends ChannelBinding {

/**
* The Google Cloud Pub/Sub Topic name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import java.util.Map;

/**
* Describes IBM MQ channel binding.
* <p>
* This object contains information about the channel representation in IBM MQ. Each channel corresponds to a Queue or Topic within IBM MQ.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/ibmmq">Redis server binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/ibmmq#channel-binding-object">IBM MQ channel binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.asyncapi.v2._6_0.binding.channel.jms;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* This class MUST NOT contain any properties. Its name is reserved for future use.
*
* <p>
* Describes JMS channel binding.
*
* @version 0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Describes Mercure channel binding.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/mercure">Mercure channel binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/mercure#channel-binding-object">Mercure channel binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.mqtt;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.mqtt5;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.nats;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.pulsar;

import com.asyncapi.v2._6_0.binding.operation.OperationBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

Expand All @@ -10,19 +10,17 @@

/**
* Describes Pulsar channel binding.
* <p>
* This object MUST NOT contain any properties. Its name is reserved for future use.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/pulsar">Pulsar channel binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/pulsar#channel-binding-object">Pulsar channel binding</a>
* @author Pavel Bodiachevskii
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PulsarChannelBinding extends OperationBinding {
public class PulsarChannelBinding extends ChannelBinding {

/**
* The namespace the channel is associated with.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.redis;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.sns;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Describes Solace channel binding.
*
* @version 0.3.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/solace">Solace channel binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/solace#channel-binding-object">Solace channel binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.channel.sqs;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.asyncapi.v2._6_0.binding.channel.stomp;

import com.asyncapi.v2.binding.ChannelBinding;
import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* This class MUST NOT contain any properties. Its name is reserved for future use.
*
* <p>
* Describes STOMP channel binding.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#channel-binding-object">STOMP channel binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/stomp#channel-binding-object">STOMP channel binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.*;

import javax.annotation.CheckForNull;
import javax.annotation.Nullable;

/**
* Describes WebSockets channel binding.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.asyncapi.v2._6_0.binding.message.amqp1;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* This class MUST NOT contain any properties. Its name is reserved for future use.
*
* <p>
* Describes AMQP 1.0 message binding.
*
* @version 0.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.message.anypointmq;

import com.asyncapi.v2._6_0.binding.channel.ChannelBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.*;

import javax.annotation.CheckForNull;
Expand All @@ -9,15 +9,15 @@
* Describes Anypoint MQ message binding.
*
* @version 0.0.1
* @see <a href="https://github.com/asyncapi/bindings/blob/master/anypointmq/README.md#channel-binding-object">Anypoint MQ channel binding</a>
* @see <a href="https://github.com/asyncapi/bindings/blob/master/anypointmq/README.md#message-binding-object">Anypoint MQ message binding</a>
* @author Pavel Bodiachevskii
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AnypointMQMessageBinding extends ChannelBinding {
public class AnypointMQMessageBinding extends MessageBinding {

/**
* OPTIONAL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Describes Google Cloud Pub/Sub message binding.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/googlepubsub">Google Cloud Pub/Sub operation binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/googlepubsub#message-binding-object">Google Cloud Pub/Sub message binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.message.http;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.*;

import javax.annotation.CheckForNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* This object contains information about the message representation in IBM MQ.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/ibmmq">IBM MQ server binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/ibmmq#message-binding-object">IBM MQ message binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.asyncapi.v2._6_0.binding.message.jms;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* This class MUST NOT contain any properties. Its name is reserved for future use.
*
* <p>
* Describes JMS message binding.
*
* @version 0.1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.asyncapi.v2._6_0.binding.message.kafka;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.*;

import javax.annotation.CheckForNull;
import javax.annotation.Nullable;

/**
* Describes Kafka message binding.
*
* <p>
* Contains information about the message representation in Kafka.
*
* @version 0.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Describes Mercure message binding.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/mercure">Mercure message binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/mercure#message-binding-object">Mercure message binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package com.asyncapi.v2._6_0.binding.message.mqtt;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.*;

import javax.annotation.CheckForNull;
import javax.annotation.Nullable;

/**
* Describes MQTT message binding.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.message.mqtt5;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.message.nats;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
package com.asyncapi.v2._6_0.binding.message.pulsar;

import com.asyncapi.v2._6_0.binding.operation.OperationBinding;
import lombok.*;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* Describes Pulsar message binding.
* <p>
* This object MUST NOT contain any properties. Its name is reserved for future use.
*
* @version 0.1.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/pulsar">Pulsar message binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/pulsar#message-binding-object">Pulsar message binding</a>
* @author Pavel Bodiachevskii
*/
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PulsarMessageBinding extends OperationBinding {
public class PulsarMessageBinding extends MessageBinding {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.message.redis;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.message.sns;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Describes Solace message binding.
*
* @version 0.3.0
* @see <a href="https://github.com/asyncapi/bindings/tree/master/solace">Solace message binding</a>
* @see <a href="https://github.com/asyncapi/bindings/tree/master/solace#message-binding-object">Solace message binding</a>
* @author Pavel Bodiachevskii
*/
@Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.asyncapi.v2._6_0.binding.message.sqs;

import com.asyncapi.v2.binding.MessageBinding;
import com.asyncapi.v2._6_0.binding.message.MessageBinding;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
Expand Down
Loading

0 comments on commit 3100101

Please sign in to comment.