diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/ChannelBindingsDeserializer.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/ChannelBindingsDeserializer.java index 470fb155..8066517e 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/ChannelBindingsDeserializer.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/ChannelBindingsDeserializer.java @@ -4,7 +4,7 @@ import com.asyncapi.bindings.amqp1.v0._1_0.channel.AMQP1ChannelBinding; import com.asyncapi.bindings.anypointmq.AnypointMQChannelBinding; import com.asyncapi.bindings.googlepubsub.GooglePubSubChannelBinding; -import com.asyncapi.bindings.http.v0._1_0.channel.HTTPChannelBinding; +import com.asyncapi.bindings.http.HTTPChannelBinding; import com.asyncapi.bindings.ibmmq.v0._1_0.channel.IBMMQChannelBinding; import com.asyncapi.bindings.jms.v0._0_1.channel.JMSChannelBinding; import com.asyncapi.bindings.kafka.v0._4_0.channel.KafkaChannelBinding; diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/MessageBindingsDeserializer.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/MessageBindingsDeserializer.java index 55adb396..7c61eab9 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/MessageBindingsDeserializer.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/MessageBindingsDeserializer.java @@ -4,7 +4,7 @@ import com.asyncapi.bindings.amqp1.v0._1_0.message.AMQP1MessageBinding; import com.asyncapi.bindings.anypointmq.AnypointMQMessageBinding; import com.asyncapi.bindings.googlepubsub.GooglePubSubMessageBinding; -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBinding; +import com.asyncapi.bindings.http.HTTPMessageBinding; import com.asyncapi.bindings.ibmmq.v0._1_0.message.IBMMQMessageBinding; import com.asyncapi.bindings.jms.v0._0_1.message.JMSMessageBinding; import com.asyncapi.bindings.kafka.v0._4_0.message.KafkaMessageBinding; diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/OperationBindingsDeserializer.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/OperationBindingsDeserializer.java index b45821b0..0f10a5b0 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/OperationBindingsDeserializer.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/OperationBindingsDeserializer.java @@ -4,7 +4,7 @@ import com.asyncapi.bindings.amqp1.v0._1_0.operation.AMQP1OperationBinding; import com.asyncapi.bindings.anypointmq.AnypointMQOperationBinding; import com.asyncapi.bindings.googlepubsub.GooglePubSubOperationBinding; -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding; +import com.asyncapi.bindings.http.HTTPOperationBinding; import com.asyncapi.bindings.ibmmq.v0._1_0.operation.IBMMQOperationBinding; import com.asyncapi.bindings.jms.v0._0_1.operation.JMSOperationBinding; import com.asyncapi.bindings.kafka.v0._4_0.operation.KafkaOperationBinding; diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/ServerBindingsDeserializer.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/ServerBindingsDeserializer.java index 230d94a0..24d516d8 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/ServerBindingsDeserializer.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/ServerBindingsDeserializer.java @@ -4,7 +4,7 @@ import com.asyncapi.bindings.amqp1.v0._1_0.server.AMQP1ServerBinding; import com.asyncapi.bindings.anypointmq.AnypointMQServerBinding; import com.asyncapi.bindings.googlepubsub.GooglePubSubServerBinding; -import com.asyncapi.bindings.http.v0._1_0.server.HTTPServerBinding; +import com.asyncapi.bindings.http.HTTPServerBinding; import com.asyncapi.bindings.ibmmq.v0._1_0.server.IBMMQServerBinding; import com.asyncapi.bindings.jms.v0._0_1.server.JMSServerBinding; import com.asyncapi.bindings.kafka.v0._4_0.server.KafkaServerBinding; diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPChannelBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPChannelBinding.java new file mode 100644 index 00000000..569c12fb --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPChannelBinding.java @@ -0,0 +1,30 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.ChannelBinding; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import lombok.EqualsAndHashCode; + +/** + * Describes HTTP channel binding. + * + * @see HTTP channel binding + * @author Pavel Bodiachevskii + */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + defaultImpl = com.asyncapi.bindings.http.v0._3_0.channel.HTTPChannelBinding.class, + property = "bindingVersion", + visible = true +) +@JsonSubTypes({ + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._1_0.channel.HTTPChannelBinding.class, names = "0.1.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._2_0.channel.HTTPChannelBinding.class, names = "0.2.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._3_0.channel.HTTPChannelBinding.class, names = { + "0.3.0", + "latest" + }), +}) +@EqualsAndHashCode(callSuper = true) +public abstract class HTTPChannelBinding extends ChannelBinding {} \ No newline at end of file diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPMessageBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPMessageBinding.java new file mode 100644 index 00000000..c6a871d8 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPMessageBinding.java @@ -0,0 +1,30 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.MessageBinding; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import lombok.EqualsAndHashCode; + +/** + * Contains information about the message representation in HTTP. + * + * @see HTTP message binding + * @author Pavel Bodiachevskii + */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + defaultImpl = com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding.class, + property = "bindingVersion", + visible = true +) +@JsonSubTypes({ + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBinding.class, names = "0.1.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._2_0.message.HTTPMessageBinding.class, names = "0.2.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding.class, names = { + "0.3.0", + "latest" + }), +}) +@EqualsAndHashCode(callSuper = true) +public abstract class HTTPMessageBinding extends MessageBinding {} \ No newline at end of file diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPOperationBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPOperationBinding.java new file mode 100644 index 00000000..80731d57 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPOperationBinding.java @@ -0,0 +1,30 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.OperationBinding; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import lombok.EqualsAndHashCode; + +/** + * Contains information about the operation representation in HTTP. + * + * @see HTTP operation binding + * @author Pavel Bodiachevskii + */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + defaultImpl = com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding.class, + property = "bindingVersion", + visible = true +) +@JsonSubTypes({ + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding.class, names = "0.1.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._2_0.operation.HTTPOperationBinding.class, names = "0.2.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding.class, names = { + "0.3.0", + "latest" + }), +}) +@EqualsAndHashCode(callSuper = true) +public abstract class HTTPOperationBinding extends OperationBinding {} \ No newline at end of file diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPServerBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPServerBinding.java new file mode 100644 index 00000000..f880c936 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/HTTPServerBinding.java @@ -0,0 +1,30 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.ServerBinding; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import lombok.EqualsAndHashCode; + +/** + * Describes HTTP server binding. + * + * @see HTTP server binding + * @author Pavel Bodiachevskii + */ +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.EXISTING_PROPERTY, + defaultImpl = com.asyncapi.bindings.http.v0._3_0.server.HTTPServerBinding.class, + property = "bindingVersion", + visible = true +) +@JsonSubTypes({ + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._1_0.server.HTTPServerBinding.class, names = "0.1.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._2_0.server.HTTPServerBinding.class, names = "0.2.0"), + @JsonSubTypes.Type(value = com.asyncapi.bindings.http.v0._3_0.server.HTTPServerBinding.class, names = { + "0.3.0", + "latest" + }), +}) +@EqualsAndHashCode(callSuper = true) +public abstract class HTTPServerBinding extends ServerBinding {} \ No newline at end of file diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/channel/HTTPChannelBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/channel/HTTPChannelBinding.java index f06a46a6..374ac399 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/channel/HTTPChannelBinding.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/channel/HTTPChannelBinding.java @@ -1,9 +1,9 @@ package com.asyncapi.bindings.http.v0._1_0.channel; -import com.asyncapi.bindings.ChannelBinding; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; +import org.jetbrains.annotations.Nullable; /** * This class MUST NOT contain any properties. Its name is reserved for future use. @@ -17,5 +17,16 @@ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) -public class HTTPChannelBinding extends ChannelBinding { +public class HTTPChannelBinding extends com.asyncapi.bindings.http.HTTPChannelBinding { + + @Override + public String getBindingVersion() { + return "0.1.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.1.0"); + } + } diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/message/HTTPMessageBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/message/HTTPMessageBinding.java index ab718288..2c70c786 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/message/HTTPMessageBinding.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/message/HTTPMessageBinding.java @@ -1,6 +1,5 @@ package com.asyncapi.bindings.http.v0._1_0.message; -import com.asyncapi.bindings.MessageBinding; import com.asyncapi.v3.schema.AsyncAPISchema; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; @@ -21,7 +20,7 @@ @NoArgsConstructor @AllArgsConstructor @EqualsAndHashCode(callSuper = true) -public class HTTPMessageBinding extends MessageBinding { +public class HTTPMessageBinding extends com.asyncapi.bindings.http.HTTPMessageBinding { /** * A Schema object containing the definitions for each query parameter. This schema MUST be of type object @@ -32,13 +31,14 @@ public class HTTPMessageBinding extends MessageBinding { @JsonPropertyDescription("A Schema object containing the definitions for each query parameter. This schema MUST be of type object and have a properties key.") private AsyncAPISchema headers; - /** - * The version of this binding. - */ - @Nullable - @Builder.Default - @JsonProperty("bindingVersion") - @JsonPropertyDescription("The version of this binding.") - private String bindingVersion = "0.1.0"; + @Override + public String getBindingVersion() { + return "0.1.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.1.0"); + } } diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/operation/HTTPOperationBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/operation/HTTPOperationBinding.java index ac866c5f..b8357de5 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/operation/HTTPOperationBinding.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/operation/HTTPOperationBinding.java @@ -1,6 +1,5 @@ package com.asyncapi.bindings.http.v0._1_0.operation; -import com.asyncapi.bindings.OperationBinding; import com.asyncapi.v3.schema.AsyncAPISchema; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; @@ -22,7 +21,7 @@ @NoArgsConstructor @AllArgsConstructor @EqualsAndHashCode(callSuper = true) -public class HTTPOperationBinding extends OperationBinding { +public class HTTPOperationBinding extends com.asyncapi.bindings.http.HTTPOperationBinding { /** * Required. @@ -54,13 +53,14 @@ public class HTTPOperationBinding extends OperationBinding { @JsonPropertyDescription("A Schema object containing the definitions for each query parameter. This schema MUST be of type object and have a properties key.") private AsyncAPISchema query; - /** - * The version of this binding. If omitted, "latest" MUST be assumed. - */ - @Nullable - @Builder.Default - @JsonProperty("bindingVersion") - @JsonPropertyDescription("The version of this binding.") - private String bindingVersion = "0.1.0"; + @Override + public String getBindingVersion() { + return "0.1.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.1.0"); + } } diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/server/HTTPServerBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/server/HTTPServerBinding.java index 269924f4..cef30738 100644 --- a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/server/HTTPServerBinding.java +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_1_0/server/HTTPServerBinding.java @@ -1,9 +1,9 @@ package com.asyncapi.bindings.http.v0._1_0.server; -import com.asyncapi.bindings.ServerBinding; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; +import org.jetbrains.annotations.Nullable; /** * This class MUST NOT contain any properties. Its name is reserved for future use. @@ -17,5 +17,16 @@ @Data @NoArgsConstructor @EqualsAndHashCode(callSuper = true) -public class HTTPServerBinding extends ServerBinding { +public class HTTPServerBinding extends com.asyncapi.bindings.http.HTTPServerBinding { + + @Override + public String getBindingVersion() { + return "0.1.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.1.0"); + } + } diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/channel/HTTPChannelBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/channel/HTTPChannelBinding.java new file mode 100644 index 00000000..e8edc01d --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/channel/HTTPChannelBinding.java @@ -0,0 +1,32 @@ +package com.asyncapi.bindings.http.v0._2_0.channel; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.jetbrains.annotations.Nullable; + +/** + * This class MUST NOT contain any properties. Its name is reserved for future use. + *

+ * Describes HTTP channel binding. + * + * @version 0.2.0 + * @see HTTP channel binding + * @author Pavel Bodiachevskii + */ +@Data +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPChannelBinding extends com.asyncapi.bindings.http.HTTPChannelBinding { + + @Override + public String getBindingVersion() { + return "0.2.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.2.0"); + } + +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/message/HTTPMessageBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/message/HTTPMessageBinding.java new file mode 100644 index 00000000..3b104932 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/message/HTTPMessageBinding.java @@ -0,0 +1,44 @@ +package com.asyncapi.bindings.http.v0._2_0.message; + +import com.asyncapi.v3.schema.AsyncAPISchema; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import lombok.*; +import org.jetbrains.annotations.Nullable; + +/** + * Describes HTTP message binding. + *

+ * Contains information about the message representation in HTTP. + * + * @version 0.2.0 + * @see HTTP message binding + * @author Pavel Bodiachevskii + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPMessageBinding extends com.asyncapi.bindings.http.HTTPMessageBinding { + + /** + * A Schema object containing the definitions for each query parameter. This schema MUST be of type object + * and have a properties key.* + */ + @Nullable + @JsonProperty("headers") + @JsonPropertyDescription("A Schema object containing the definitions for each query parameter. This schema MUST be of type object and have a properties key.") + private AsyncAPISchema headers; + + @Override + public String getBindingVersion() { + return "0.2.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.2.0"); + } + +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/operation/HTTPOperationBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/operation/HTTPOperationBinding.java new file mode 100644 index 00000000..2ed6ff70 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/operation/HTTPOperationBinding.java @@ -0,0 +1,54 @@ +package com.asyncapi.bindings.http.v0._2_0.operation; + +import com.asyncapi.v3.schema.AsyncAPISchema; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import lombok.*; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * Describes HTTP operation binding. + *

+ * Contains information about the operation representation in HTTP. + * + * @version 0.2.0 + * @see HTTP operation binding + * @author Pavel Bodiachevskii + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPOperationBinding extends com.asyncapi.bindings.http.HTTPOperationBinding { + + /** + * When type is request, this is the HTTP method, otherwise it MUST be ignored. Its value MUST be one of + * GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, and TRACE. + */ + @Nullable + @JsonProperty("method") + @JsonPropertyDescription("When type is request, this is the HTTP method, otherwise it MUST be ignored. Its value MUST be one of GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, and TRACE.") + private HTTPOperationMethod method; + + /** + * A Schema object containing the definitions for each query parameter. This schema MUST be of type object + * and have a properties key. + */ + @Nullable + @JsonProperty("query") + @JsonPropertyDescription("A Schema object containing the definitions for each query parameter. This schema MUST be of type object and have a properties key.") + private AsyncAPISchema query; + + @Override + public String getBindingVersion() { + return "0.2.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.2.0"); + } + +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/operation/HTTPOperationMethod.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/operation/HTTPOperationMethod.java new file mode 100644 index 00000000..067ea0d0 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/operation/HTTPOperationMethod.java @@ -0,0 +1,22 @@ +package com.asyncapi.bindings.http.v0._2_0.operation; + +/** + * Describes HTTP operation type. + *

+ * Contains information about the operation type. + * + * @version 0.1.0 + * @see HTTP operation binding + * @author Pavel Bodiachevskii + */ +public enum HTTPOperationMethod { + GET, + PUT, + POST, + PATCH, + DELETE, + HEAD, + OPTIONS, + CONNECT, + TRACE +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/server/HTTPServerBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/server/HTTPServerBinding.java new file mode 100644 index 00000000..aa0fde30 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_2_0/server/HTTPServerBinding.java @@ -0,0 +1,32 @@ +package com.asyncapi.bindings.http.v0._2_0.server; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.jetbrains.annotations.Nullable; + +/** + * This class MUST NOT contain any properties. Its name is reserved for future use. + *

+ * Describes HTTP server binding. + * + * @version 0.2.0 + * @see HTTP server binding + * @author Pavel Bodiachevskii + */ +@Data +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPServerBinding extends com.asyncapi.bindings.http.HTTPServerBinding { + + @Override + public String getBindingVersion() { + return "0.2.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.2.0"); + } + +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/channel/HTTPChannelBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/channel/HTTPChannelBinding.java new file mode 100644 index 00000000..afb3cca2 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/channel/HTTPChannelBinding.java @@ -0,0 +1,32 @@ +package com.asyncapi.bindings.http.v0._3_0.channel; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.jetbrains.annotations.Nullable; + +/** + * This class MUST NOT contain any properties. Its name is reserved for future use. + *

+ * Describes HTTP channel binding. + * + * @version 0.3.0 + * @see HTTP channel binding + * @author Pavel Bodiachevskii + */ +@Data +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPChannelBinding extends com.asyncapi.bindings.http.HTTPChannelBinding { + + @Override + public String getBindingVersion() { + return "0.3.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.3.0"); + } + +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/message/HTTPMessageBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/message/HTTPMessageBinding.java new file mode 100644 index 00000000..1ec45d80 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/message/HTTPMessageBinding.java @@ -0,0 +1,56 @@ +package com.asyncapi.bindings.http.v0._3_0.message; + +import com.asyncapi.v3.schema.AsyncAPISchema; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import lombok.*; +import org.jetbrains.annotations.Nullable; + +/** + * Describes HTTP message binding. + *

+ * Contains information about the message representation in HTTP. + * + * @version 0.3.0 + * @see HTTP message binding + * @author Pavel Bodiachevskii + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPMessageBinding extends com.asyncapi.bindings.http.HTTPMessageBinding { + + /** + * A Schema object containing the definitions for each query parameter. This schema MUST be of type object + * and have a properties key.* + */ + @Nullable + @JsonProperty("headers") + @JsonPropertyDescription("A Schema object containing the definitions for each query parameter. This schema MUST be of type object and have a properties key.") + private AsyncAPISchema headers; + + /** + * The HTTP response status code according to RFC 9110. + *

+ * `statusCode` is only relevant for messages referenced by the Operation Reply Object, + * as it defines the status code for the response. + *

+ * In all other cases, this value can be safely ignored. + */ + @Nullable + @JsonProperty("statusCode") + private Integer statusCode; + + @Override + public String getBindingVersion() { + return "0.3.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.3.0"); + } + +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/operation/HTTPOperationBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/operation/HTTPOperationBinding.java new file mode 100644 index 00000000..834a4d51 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/operation/HTTPOperationBinding.java @@ -0,0 +1,53 @@ +package com.asyncapi.bindings.http.v0._3_0.operation; + +import com.asyncapi.v3.schema.AsyncAPISchema; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import lombok.*; +import org.jetbrains.annotations.Nullable; + +/** + * Describes HTTP operation binding. + *

+ * Contains information about the operation representation in HTTP. + * + * @version 0.3.0 + * @see HTTP operation binding + * @author Pavel Bodiachevskii + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPOperationBinding extends com.asyncapi.bindings.http.HTTPOperationBinding { + + /** + * When type is request, this is the HTTP method, otherwise it MUST be ignored. Its value MUST be one of + * GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, and TRACE. + */ + @Nullable + @JsonProperty("method") + @JsonPropertyDescription("When type is request, this is the HTTP method, otherwise it MUST be ignored. Its value MUST be one of GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, and TRACE.") + private HTTPOperationMethod method; + + /** + * A Schema object containing the definitions for each query parameter. This schema MUST be of type object + * and have a properties key. + */ + @Nullable + @JsonProperty("query") + @JsonPropertyDescription("A Schema object containing the definitions for each query parameter. This schema MUST be of type object and have a properties key.") + private AsyncAPISchema query; + + @Override + public String getBindingVersion() { + return "0.3.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.3.0"); + } + +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/operation/HTTPOperationMethod.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/operation/HTTPOperationMethod.java new file mode 100644 index 00000000..37fa1066 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/operation/HTTPOperationMethod.java @@ -0,0 +1,22 @@ +package com.asyncapi.bindings.http.v0._3_0.operation; + +/** + * Describes HTTP operation type. + *

+ * Contains information about the operation type. + * + * @version 0.1.0 + * @see HTTP operation binding + * @author Pavel Bodiachevskii + */ +public enum HTTPOperationMethod { + GET, + PUT, + POST, + PATCH, + DELETE, + HEAD, + OPTIONS, + CONNECT, + TRACE +} diff --git a/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/server/HTTPServerBinding.java b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/server/HTTPServerBinding.java new file mode 100644 index 00000000..62896d53 --- /dev/null +++ b/asyncapi-core/src/main/java/com/asyncapi/bindings/http/v0/_3_0/server/HTTPServerBinding.java @@ -0,0 +1,32 @@ +package com.asyncapi.bindings.http.v0._3_0.server; + +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.jetbrains.annotations.Nullable; + +/** + * This class MUST NOT contain any properties. Its name is reserved for future use. + *

+ * Describes HTTP server binding. + * + * @version 0.3.0 + * @see HTTP server binding + * @author Pavel Bodiachevskii + */ +@Data +@NoArgsConstructor +@EqualsAndHashCode(callSuper = true) +public class HTTPServerBinding extends com.asyncapi.bindings.http.HTTPServerBinding { + + @Override + public String getBindingVersion() { + return "0.3.0"; + } + + @Override + public void setBindingVersion(@Nullable String bindingVersion) { + super.setBindingVersion("0.3.0"); + } + +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTP.java b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTP.java new file mode 100644 index 00000000..e56243cd --- /dev/null +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTP.java @@ -0,0 +1,11 @@ +package com.asyncapi.bindings.http; + +import org.junit.platform.suite.api.SelectPackages; +import org.junit.platform.suite.api.Suite; +import org.junit.platform.suite.api.SuiteDisplayName; + +@Suite +@SuiteDisplayName("HTTP") +@SelectPackages("com.asyncapi.bindings.http") +public class HTTP { +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPLatestTest.java b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPLatestTest.java new file mode 100644 index 00000000..65f66df8 --- /dev/null +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPLatestTest.java @@ -0,0 +1,54 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.BindingTest; +import com.asyncapi.bindings.http.v0._3_0.channel.HTTPChannelBinding; +import com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding; +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding; +import com.asyncapi.bindings.http.v0._3_0.server.HTTPServerBinding; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; + +@DisplayName("latest") +public class HTTPLatestTest { + + @Nested + @DisplayName("channel") + class ChannelTest extends BindingTest {{ + super.binding = HTTPV0_3_0Test.channelBinding(); + super.bindingTypeClass = HTTPChannelBinding.class; + super.pathToBindingJson = "/bindings/http/latest/channel/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/latest/channel/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/latest/channel/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("message") + class Message extends BindingTest {{ + super.binding = HTTPV0_3_0Test.messageBinding(); + super.bindingTypeClass = HTTPMessageBinding.class; + super.pathToBindingJson = "/bindings/http/latest/message/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/latest/message/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/latest/message/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("operation") + class Operation extends BindingTest {{ + super.binding = HTTPV0_3_0Test.operationBinding(); + super.bindingTypeClass = HTTPOperationBinding.class; + super.pathToBindingJson = "/bindings/http/latest/operation/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/latest/operation/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/latest/operation/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("server") + class Server extends BindingTest {{ + super.binding = HTTPV0_3_0Test.serverBinding(); + super.bindingTypeClass = HTTPServerBinding.class; + super.pathToBindingJson = "/bindings/http/latest/server/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/latest/server/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/latest/server/binding - wrongly extended.json"; + }} + +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPUnknownVersionTest.java b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPUnknownVersionTest.java new file mode 100644 index 00000000..e9cc9f4e --- /dev/null +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPUnknownVersionTest.java @@ -0,0 +1,54 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.BindingTest; +import com.asyncapi.bindings.http.v0._3_0.channel.HTTPChannelBinding; +import com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding; +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding; +import com.asyncapi.bindings.http.v0._3_0.server.HTTPServerBinding; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; + +@DisplayName("unknown version") +public class HTTPUnknownVersionTest { + + @Nested + @DisplayName("channel") + class ChannelTest extends BindingTest {{ + super.binding = HTTPV0_3_0Test.channelBinding(); + super.bindingTypeClass = HTTPChannelBinding.class; + super.pathToBindingJson = "/bindings/http/unknown version/channel/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/unknown version/channel/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/unknown version/channel/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("message") + class Message extends BindingTest {{ + super.binding = HTTPV0_3_0Test.messageBinding(); + super.bindingTypeClass = HTTPMessageBinding.class; + super.pathToBindingJson = "/bindings/http/unknown version/message/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/unknown version/message/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/unknown version/message/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("operation") + class Operation extends BindingTest {{ + super.binding = HTTPV0_3_0Test.operationBinding(); + super.bindingTypeClass = HTTPOperationBinding.class; + super.pathToBindingJson = "/bindings/http/unknown version/operation/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/unknown version/operation/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/unknown version/operation/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("server") + class Server extends BindingTest {{ + super.binding = HTTPV0_3_0Test.serverBinding(); + super.bindingTypeClass = HTTPServerBinding.class; + super.pathToBindingJson = "/bindings/http/unknown version/server/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/unknown version/server/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/unknown version/server/binding - wrongly extended.json"; + }} + +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_1_0Test.java b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_1_0Test.java new file mode 100644 index 00000000..13dc856d --- /dev/null +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_1_0Test.java @@ -0,0 +1,105 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.BindingTest; +import com.asyncapi.bindings.http.v0._1_0.channel.HTTPChannelBinding; +import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBinding; +import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding; +import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationMethod; +import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationType; +import com.asyncapi.bindings.http.v0._1_0.server.HTTPServerBinding; +import com.asyncapi.v3.schema.AsyncAPISchema; +import com.asyncapi.v3.schema.Type; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; + +import java.math.BigDecimal; +import java.util.List; +import java.util.Map; + +@DisplayName("0.1.0") +public class HTTPV0_1_0Test { + + public static HTTPChannelBinding channelBinding () { + return new HTTPChannelBinding(); + } + + public static HTTPMessageBinding messageBinding () { + return HTTPMessageBinding.builder() + .headers(AsyncAPISchema.builder() + .type(Type.OBJECT) + .properties(Map.ofEntries( + Map.entry("Content-Type", AsyncAPISchema.builder() + .type(Type.STRING) + .enumValue(List.of("application/json")) + .build()) + )) + .build() + ) + .build(); + } + + public static HTTPOperationBinding operationBinding () { + return HTTPOperationBinding.builder() + .type(HTTPOperationType.REQUEST) + .method(HTTPOperationMethod.GET) + .query(AsyncAPISchema.builder() + .type(Type.OBJECT) + .required(List.of("companyId")) + .properties(Map.ofEntries( + Map.entry("companyId", AsyncAPISchema.builder() + .type(Type.NUMBER) + .minimum(BigDecimal.ONE) + .description("The Id of the company.") + .build()) + )) + .additionalProperties(false) + .build() + ) + .build(); + } + + public static HTTPServerBinding serverBinding () { + return new HTTPServerBinding(); + } + + @Nested + @DisplayName("channel") + class ChannelTest extends BindingTest {{ + super.binding = channelBinding(); + super.bindingTypeClass = HTTPChannelBinding.class; + super.pathToBindingJson = "/bindings/http/0.1.0/channel/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.1.0/channel/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.1.0/channel/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("message") + class Message extends BindingTest {{ + super.binding = messageBinding(); + super.bindingTypeClass = HTTPMessageBinding.class; + super.pathToBindingJson = "/bindings/http/0.1.0/message/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.1.0/message/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.1.0/message/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("operation") + class Operation extends BindingTest {{ + super.binding = operationBinding(); + super.bindingTypeClass = HTTPOperationBinding.class; + super.pathToBindingJson = "/bindings/http/0.1.0/operation/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.1.0/operation/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.1.0/operation/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("server") + class Server extends BindingTest {{ + super.binding = serverBinding(); + super.bindingTypeClass = HTTPServerBinding.class; + super.pathToBindingJson = "/bindings/http/0.1.0/server/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.1.0/server/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.1.0/server/binding - wrongly extended.json"; + }} + +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_2_0Test.java b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_2_0Test.java new file mode 100644 index 00000000..95ca7ba4 --- /dev/null +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_2_0Test.java @@ -0,0 +1,103 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.BindingTest; +import com.asyncapi.bindings.http.v0._2_0.channel.HTTPChannelBinding; +import com.asyncapi.bindings.http.v0._2_0.message.HTTPMessageBinding; +import com.asyncapi.bindings.http.v0._2_0.operation.HTTPOperationBinding; +import com.asyncapi.bindings.http.v0._2_0.operation.HTTPOperationMethod; +import com.asyncapi.bindings.http.v0._2_0.server.HTTPServerBinding; +import com.asyncapi.v3.schema.AsyncAPISchema; +import com.asyncapi.v3.schema.Type; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; + +import java.math.BigDecimal; +import java.util.List; +import java.util.Map; + +@DisplayName("0.2.0") +public class HTTPV0_2_0Test { + + public static HTTPChannelBinding channelBinding () { + return new HTTPChannelBinding(); + } + + public static HTTPMessageBinding messageBinding () { + return HTTPMessageBinding.builder() + .headers(AsyncAPISchema.builder() + .type(Type.OBJECT) + .properties(Map.ofEntries( + Map.entry("Content-Type", AsyncAPISchema.builder() + .type(Type.STRING) + .enumValue(List.of("application/json")) + .build()) + )) + .build() + ) + .build(); + } + + public static HTTPOperationBinding operationBinding () { + return HTTPOperationBinding.builder() + .method(HTTPOperationMethod.GET) + .query(AsyncAPISchema.builder() + .type(Type.OBJECT) + .required(List.of("companyId")) + .properties(Map.ofEntries( + Map.entry("companyId", AsyncAPISchema.builder() + .type(Type.NUMBER) + .minimum(BigDecimal.ONE) + .description("The Id of the company.") + .build()) + )) + .additionalProperties(false) + .build() + ) + .build(); + } + + public static HTTPServerBinding serverBinding () { + return new HTTPServerBinding(); + } + + @Nested + @DisplayName("channel") + class ChannelTest extends BindingTest {{ + super.binding = channelBinding(); + super.bindingTypeClass = HTTPChannelBinding.class; + super.pathToBindingJson = "/bindings/http/0.2.0/channel/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.2.0/channel/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.2.0/channel/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("message") + class Message extends BindingTest {{ + super.binding = messageBinding(); + super.bindingTypeClass = HTTPMessageBinding.class; + super.pathToBindingJson = "/bindings/http/0.2.0/message/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.2.0/message/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.2.0/message/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("operation") + class Operation extends BindingTest {{ + super.binding = operationBinding(); + super.bindingTypeClass = HTTPOperationBinding.class; + super.pathToBindingJson = "/bindings/http/0.2.0/operation/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.2.0/operation/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.2.0/operation/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("server") + class Server extends BindingTest {{ + super.binding = serverBinding(); + super.bindingTypeClass = HTTPServerBinding.class; + super.pathToBindingJson = "/bindings/http/0.2.0/server/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.2.0/server/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.2.0/server/binding - wrongly extended.json"; + }} + +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_3_0Test.java b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_3_0Test.java new file mode 100644 index 00000000..48f5dd31 --- /dev/null +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPV0_3_0Test.java @@ -0,0 +1,104 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.BindingTest; +import com.asyncapi.bindings.http.v0._3_0.channel.HTTPChannelBinding; +import com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding; +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding; +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationMethod; +import com.asyncapi.bindings.http.v0._3_0.server.HTTPServerBinding; +import com.asyncapi.v3.schema.AsyncAPISchema; +import com.asyncapi.v3.schema.Type; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; + +import java.math.BigDecimal; +import java.util.List; +import java.util.Map; + +@DisplayName("0.3.0") +public class HTTPV0_3_0Test { + + public static HTTPChannelBinding channelBinding () { + return new HTTPChannelBinding(); + } + + public static HTTPMessageBinding messageBinding () { + return HTTPMessageBinding.builder() + .headers(AsyncAPISchema.builder() + .type(Type.OBJECT) + .properties(Map.ofEntries( + Map.entry("Content-Type", AsyncAPISchema.builder() + .type(Type.STRING) + .enumValue(List.of("application/json")) + .build()) + )) + .build() + ) + .statusCode(200) + .build(); + } + + public static HTTPOperationBinding operationBinding () { + return HTTPOperationBinding.builder() + .method(HTTPOperationMethod.GET) + .query(AsyncAPISchema.builder() + .type(Type.OBJECT) + .required(List.of("companyId")) + .properties(Map.ofEntries( + Map.entry("companyId", AsyncAPISchema.builder() + .type(Type.NUMBER) + .minimum(BigDecimal.ONE) + .description("The Id of the company.") + .build()) + )) + .additionalProperties(false) + .build() + ) + .build(); + } + + public static HTTPServerBinding serverBinding () { + return new HTTPServerBinding(); + } + + @Nested + @DisplayName("channel") + class ChannelTest extends BindingTest {{ + super.binding = channelBinding(); + super.bindingTypeClass = HTTPChannelBinding.class; + super.pathToBindingJson = "/bindings/http/0.3.0/channel/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.3.0/channel/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.3.0/channel/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("message") + class Message extends BindingTest {{ + super.binding = messageBinding(); + super.bindingTypeClass = HTTPMessageBinding.class; + super.pathToBindingJson = "/bindings/http/0.3.0/message/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.3.0/message/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.3.0/message/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("operation") + class Operation extends BindingTest {{ + super.binding = operationBinding(); + super.bindingTypeClass = HTTPOperationBinding.class; + super.pathToBindingJson = "/bindings/http/0.3.0/operation/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.3.0/operation/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.3.0/operation/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("server") + class Server extends BindingTest {{ + super.binding = serverBinding(); + super.bindingTypeClass = HTTPServerBinding.class; + super.pathToBindingJson = "/bindings/http/0.3.0/server/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/0.3.0/server/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/0.3.0/server/binding - wrongly extended.json"; + }} + +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPWithoutVersionTest.java b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPWithoutVersionTest.java new file mode 100644 index 00000000..f0356064 --- /dev/null +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/HTTPWithoutVersionTest.java @@ -0,0 +1,54 @@ +package com.asyncapi.bindings.http; + +import com.asyncapi.bindings.BindingTest; +import com.asyncapi.bindings.http.v0._3_0.channel.HTTPChannelBinding; +import com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding; +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding; +import com.asyncapi.bindings.http.v0._3_0.server.HTTPServerBinding; +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Nested; + +@DisplayName("without version") +public class HTTPWithoutVersionTest { + + @Nested + @DisplayName("channel") + class ChannelTest extends BindingTest {{ + super.binding = HTTPV0_3_0Test.channelBinding(); + super.bindingTypeClass = HTTPChannelBinding.class; + super.pathToBindingJson = "/bindings/http/without version/channel/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/without version/channel/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/without version/channel/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("message") + class Message extends BindingTest {{ + super.binding = HTTPV0_3_0Test.messageBinding(); + super.bindingTypeClass = HTTPMessageBinding.class; + super.pathToBindingJson = "/bindings/http/without version/message/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/without version/message/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/without version/message/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("operation") + class Operation extends BindingTest {{ + super.binding = HTTPV0_3_0Test.operationBinding(); + super.bindingTypeClass = HTTPOperationBinding.class; + super.pathToBindingJson = "/bindings/http/without version/operation/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/without version/operation/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/without version/operation/binding - wrongly extended.json"; + }} + + @Nested + @DisplayName("server") + class Server extends BindingTest {{ + super.binding = HTTPV0_3_0Test.serverBinding(); + super.bindingTypeClass = HTTPServerBinding.class; + super.pathToBindingJson = "/bindings/http/without version/server/binding.json"; + super.pathToExtendedBindingJson = "/bindings/http/without version/server/binding - extended.json"; + super.pathToWronglyExtendedBindingJson = "/bindings/http/without version/server/binding - wrongly extended.json"; + }} + +} diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/v0/_1_0/message/HTTPMessageBindingTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/v0/_1_0/message/HTTPMessageBindingTest.kt deleted file mode 100644 index 9a2bcb3b..00000000 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/v0/_1_0/message/HTTPMessageBindingTest.kt +++ /dev/null @@ -1,34 +0,0 @@ -package com.asyncapi.bindings.http.v0._1_0.message - -import com.asyncapi.v3.SerDeTest -import com.asyncapi.v3.schema.AsyncAPISchema -import com.asyncapi.v3.schema.Type - -class HTTPMessageBindingTest: SerDeTest() { - - override fun objectClass() = HTTPMessageBinding::class.java - - override fun baseObjectJson() = "/bindings/http/message/httpMessageBinding.json" - - override fun extendedObjectJson() = "/bindings/http/message/httpMessageBinding - extended.json" - - override fun wronglyExtendedObjectJson() = "/bindings/http/message/httpMessageBinding - wrongly extended.json" - - override fun build(): HTTPMessageBinding { - return HTTPMessageBinding.builder() - .headers(AsyncAPISchema.builder() - .type(Type.OBJECT) - .properties(mapOf( - Pair( - "Content-Type", - AsyncAPISchema.builder() - .type(Type.STRING) - .enumValue(listOf("application/json")) - .build() - ) - )) - .build()) - .build() - } - -} \ No newline at end of file diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/v0/_1_0/operation/HTTPOperationBindingTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/v0/_1_0/operation/HTTPOperationBindingTest.kt deleted file mode 100644 index 3823cf6d..00000000 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/bindings/http/v0/_1_0/operation/HTTPOperationBindingTest.kt +++ /dev/null @@ -1,41 +0,0 @@ -package com.asyncapi.bindings.http.v0._1_0.operation - -import com.asyncapi.v3.SerDeTest -import com.asyncapi.v3.schema.AsyncAPISchema -import com.asyncapi.v3.schema.Type -import java.math.BigDecimal - -class HTTPOperationBindingTest: SerDeTest() { - - override fun objectClass() = HTTPOperationBinding::class.java - - override fun baseObjectJson() = "/bindings/http/operation/httpOperationBinding.json" - - override fun extendedObjectJson() = "/bindings/http/operation/httpOperationBinding - extended.json" - - override fun wronglyExtendedObjectJson() = "/bindings/http/operation/httpOperationBinding - wrongly extended.json" - - override fun build(): HTTPOperationBinding { - return HTTPOperationBinding.builder() - .type(HTTPOperationType.REQUEST) - .method(HTTPOperationMethod.GET) - .query(AsyncAPISchema.builder() - .type(Type.OBJECT) - .required(listOf("companyId")) - .properties(mapOf( - Pair( - "companyId", - AsyncAPISchema.builder() - .type(Type.NUMBER) - .minimum(BigDecimal.ONE) - .description("The Id of the company.") - .build() - ) - )) - .additionalProperties(false) - .build() - ) - .build() - } - -} \ No newline at end of file diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/GitterStreaming.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/GitterStreaming.kt index 36daaa59..fdcfc573 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/GitterStreaming.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/GitterStreaming.kt @@ -8,9 +8,8 @@ import com.asyncapi.v2._0_0.model.channel.operation.Operation import com.asyncapi.v2._0_0.model.component.Components import com.asyncapi.v2._0_0.model.info.Info import com.asyncapi.v2._0_0.model.server.Server -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationType +import com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding import com.asyncapi.v2.schema.Schema import com.asyncapi.v2.security_scheme.http.HttpSecurityScheme import com.asyncapi.v3.schema.AsyncAPISchema @@ -68,7 +67,6 @@ class GitterStreaming: AbstractExampleValidationTest() { .subscribe(Operation.builder() .bindings(mapOf( Pair("http", HTTPOperationBinding.builder() - .type(HTTPOperationType.RESPONSE) .build() ) )) diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/OperationSecurity.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/OperationSecurity.kt index 8a122739..0787de9b 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/OperationSecurity.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_0_0/OperationSecurity.kt @@ -1,17 +1,16 @@ package com.asyncapi.examples.v2._0_0 import com.asyncapi.Reference +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationMethod import com.asyncapi.v2._0_0.model.channel.ChannelItem import com.asyncapi.v2._0_0.model.channel.message.Message import com.asyncapi.v2._0_0.model.channel.operation.Operation import com.asyncapi.v2._0_0.model.component.Components import com.asyncapi.v2._0_0.model.info.Info -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationMethod -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationType import com.asyncapi.v2.schema.Schema -import com.asyncapi.v2.security_scheme.oauth2.OAuthFlows import com.asyncapi.v2.security_scheme.oauth2.OAuth2SecurityScheme +import com.asyncapi.v2.security_scheme.oauth2.OAuthFlows import com.asyncapi.v2.security_scheme.oauth2.flow.ClientCredentialsOAuthFlow class OperationSecurity: AbstractExampleValidationTest() { @@ -36,7 +35,6 @@ class OperationSecurity: AbstractExampleValidationTest() { .message(Reference("#/components/messages/message")) .bindings(mapOf( Pair("http", HTTPOperationBinding.builder() - .type(HTTPOperationType.REQUEST) .method(HTTPOperationMethod.POST) .build()) )) diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/GitterStreaming.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/GitterStreaming.kt index a57572af..a3d37279 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/GitterStreaming.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/GitterStreaming.kt @@ -9,9 +9,8 @@ import com.asyncapi.v2._6_0.model.channel.operation.Operation import com.asyncapi.v2._6_0.model.component.Components import com.asyncapi.v2._6_0.model.info.Info import com.asyncapi.v2._6_0.model.server.Server -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationType +import com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding import com.asyncapi.v2.schema.Schema import com.asyncapi.v2.security_scheme.http.HttpSecurityScheme import com.asyncapi.v3.schema.AsyncAPISchema @@ -69,7 +68,6 @@ class GitterStreaming: AbstractExampleValidationTest() { .subscribe(Operation.builder() .bindings(mapOf( Pair("http", HTTPOperationBinding.builder() - .type(HTTPOperationType.RESPONSE) .build() ) )) diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/OperationSecurity.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/OperationSecurity.kt index 640d7fde..5470dd5b 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/OperationSecurity.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v2/_6_0/OperationSecurity.kt @@ -6,9 +6,8 @@ import com.asyncapi.v2._6_0.model.channel.message.Message import com.asyncapi.v2._6_0.model.channel.operation.Operation import com.asyncapi.v2._6_0.model.component.Components import com.asyncapi.v2._6_0.model.info.Info -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationMethod -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationType +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationMethod import com.asyncapi.v2.schema.Schema import com.asyncapi.v2.security_scheme.oauth2.OAuthFlows import com.asyncapi.v2.security_scheme.oauth2.OAuth2SecurityScheme @@ -36,7 +35,6 @@ class OperationSecurity: AbstractExampleValidationTest() { .message(Reference("#/components/messages/message")) .bindings(mapOf( Pair("http", HTTPOperationBinding.builder() - .type(HTTPOperationType.REQUEST) .method(HTTPOperationMethod.POST) .build()) )) diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/GitterStreamingAsyncAPI.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/GitterStreamingAsyncAPI.kt index 7ad9abcb..025518e1 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/GitterStreamingAsyncAPI.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/GitterStreamingAsyncAPI.kt @@ -1,7 +1,9 @@ package com.asyncapi.examples.v3._0_0 -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBinding import com.asyncapi.Reference +import com.asyncapi.bindings.http.v0._3_0.message.HTTPMessageBinding +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationMethod import com.asyncapi.v3._0_0.model.channel.Channel import com.asyncapi.v3._0_0.model.channel.Parameter import com.asyncapi.v3._0_0.model.channel.message.Message @@ -10,8 +12,6 @@ import com.asyncapi.v3._0_0.model.info.Info import com.asyncapi.v3._0_0.model.operation.Operation import com.asyncapi.v3._0_0.model.operation.OperationAction import com.asyncapi.v3._0_0.model.server.Server -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationMethod import com.asyncapi.v3.schema.AsyncAPISchema import com.asyncapi.v3.schema.JsonSchema import com.asyncapi.v3.schema.multiformat.JsonFormatSchema @@ -274,7 +274,9 @@ class GitterStreamingAsyncAPI: AbstractExampleValidationTest() { .build() ) )) - .build()) + .build() + ) + .statusCode(200) .build() ) )) @@ -304,7 +306,9 @@ class GitterStreamingAsyncAPI: AbstractExampleValidationTest() { .build() ) )) - .build()) + .build() + ) + .statusCode(200) .build() ) )) diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/OperationSecurityAsyncAPI.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/OperationSecurityAsyncAPI.kt index dfc37776..a000152c 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/OperationSecurityAsyncAPI.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/examples/v3/_0_0/OperationSecurityAsyncAPI.kt @@ -1,14 +1,14 @@ package com.asyncapi.examples.v3._0_0 import com.asyncapi.Reference +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationBinding +import com.asyncapi.bindings.http.v0._3_0.operation.HTTPOperationMethod import com.asyncapi.v3._0_0.model.channel.Channel import com.asyncapi.v3._0_0.model.channel.message.Message import com.asyncapi.v3._0_0.model.component.Components import com.asyncapi.v3._0_0.model.info.Info import com.asyncapi.v3._0_0.model.operation.Operation import com.asyncapi.v3._0_0.model.operation.OperationAction -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBinding -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationMethod import com.asyncapi.v3.schema.AsyncAPISchema import com.asyncapi.v3.security_scheme.oauth2.OAuth2SecurityScheme import com.asyncapi.v3.security_scheme.oauth2.OAuthFlows diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/ChannelItemTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/ChannelItemTest.kt index e0c002fa..e8327302 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/ChannelItemTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/ChannelItemTest.kt @@ -9,7 +9,7 @@ import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.amqp1.v0._1_0.channel.AMQP1ChannelBinding import com.asyncapi.bindings.anypointmq.AnypointMQV0_0_1Test import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_1_0Test -import com.asyncapi.bindings.http.v0._1_0.channel.HTTPChannelBinding +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.channel.IBMMQChannelBindingTest import com.asyncapi.bindings.jms.v0._0_1.channel.JMSChannelBinding import com.asyncapi.bindings.kafka.v0._4_0.channel.KafkaChannelBindingTest @@ -59,7 +59,7 @@ class ChannelItemTest: SerDeTest() { Pair("amqp1", AMQP1ChannelBinding()), Pair("anypointmq", AnypointMQV0_0_1Test.channelBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.channelBinding()), - Pair("http", HTTPChannelBinding()), + Pair("http", HTTPV0_3_0Test.channelBinding()), Pair("ibmmq", IBMMQChannelBindingTest().build()), Pair("jms", JMSChannelBinding()), Pair("kafka", KafkaChannelBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTest.kt index b0e88b67..0281c9df 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTest.kt @@ -10,7 +10,7 @@ import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.amqp1.v0._1_0.message.AMQP1MessageBinding import com.asyncapi.bindings.anypointmq.AnypointMQV0_0_1Test import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_1_0Test -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.message.IBMMQMessageBindingTest import com.asyncapi.bindings.jms.v0._0_1.message.JMSMessageBinding import com.asyncapi.bindings.kafka.v0._4_0.message.KafkaMessageBindingTest @@ -118,7 +118,7 @@ class MessageTest: SerDeTest() { Pair("amqp1", AMQP1MessageBinding()), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", JMSMessageBinding()), Pair("kafka", KafkaMessageBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTraitTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTraitTest.kt index f30c4598..cbb673f3 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTraitTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/message/MessageTraitTest.kt @@ -8,7 +8,7 @@ import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.amqp1.v0._1_0.message.AMQP1MessageBinding import com.asyncapi.bindings.anypointmq.AnypointMQV0_0_1Test import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_1_0Test -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.message.IBMMQMessageBindingTest import com.asyncapi.bindings.jms.v0._0_1.message.JMSMessageBinding import com.asyncapi.bindings.kafka.v0._4_0.message.KafkaMessageBindingTest @@ -77,7 +77,7 @@ class MessageTraitTest: SerDeTest() { Pair("amqp1", AMQP1MessageBinding()), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", JMSMessageBinding()), Pair("kafka", KafkaMessageBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTest.kt index 40218a71..fe5ae4b5 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTest.kt @@ -10,7 +10,7 @@ import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.amqp1.v0._1_0.operation.AMQP1OperationBinding import com.asyncapi.bindings.anypointmq.v0._0_1.operation.AnypointMQOperationBinding import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.operation.IBMMQOperationBinding import com.asyncapi.bindings.jms.v0._0_1.operation.JMSOperationBinding import com.asyncapi.bindings.kafka.v0._4_0.operation.KafkaOperationBindingTest @@ -105,7 +105,7 @@ class OperationTest { Pair("amqp1", AMQP1OperationBinding()), Pair("anypointmq", AnypointMQOperationBinding()), Pair("googlepubsub", GooglePubSubV0_2_0Test.operationBinding()), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", IBMMQOperationBinding()), Pair("jms", JMSOperationBinding()), Pair("kafka", KafkaOperationBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTraitTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTraitTest.kt index 9c9fad4e..866e0080 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTraitTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/channel/operation/OperationTraitTest.kt @@ -7,7 +7,7 @@ import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.amqp1.v0._1_0.operation.AMQP1OperationBinding import com.asyncapi.bindings.anypointmq.v0._0_1.operation.AnypointMQOperationBinding import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.operation.IBMMQOperationBinding import com.asyncapi.bindings.jms.v0._0_1.operation.JMSOperationBinding import com.asyncapi.bindings.kafka.v0._4_0.operation.KafkaOperationBindingTest @@ -54,7 +54,7 @@ class OperationTraitTest: SerDeTest() { Pair("amqp1", AMQP1OperationBinding()), Pair("anypointmq", AnypointMQOperationBinding()), Pair("googlepubsub", GooglePubSubV0_2_0Test.operationBinding()), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", IBMMQOperationBinding()), Pair("jms", JMSOperationBinding()), Pair("kafka", KafkaOperationBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/server/ServerTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/server/ServerTest.kt index aaddfdc2..58c954b8 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/server/ServerTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_0_0/model/server/ServerTest.kt @@ -5,7 +5,7 @@ import com.asyncapi.bindings.ServerBinding import com.asyncapi.bindings.amqp1.v0._1_0.server.AMQP1ServerBinding import com.asyncapi.bindings.anypointmq.v0._0_1.server.AnypointMQServerBinding import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.server.HTTPServerBinding +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.server.IBMMQServerBinding import com.asyncapi.bindings.jms.v0._0_1.server.JMSServerBinding import com.asyncapi.bindings.kafka.v0._4_0.server.KafkaServerBinding @@ -65,7 +65,7 @@ class ServerTest: SerDeTest() { Pair("amqp1", AMQP1ServerBinding()), Pair("anypointmq", AnypointMQServerBinding()), Pair("googlepubsub", GooglePubSubV0_2_0Test.serverBinding()), - Pair("http", HTTPServerBinding()), + Pair("http", HTTPV0_3_0Test.serverBinding()), Pair( "ibmmq", IBMMQServerBinding.builder() diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTest.kt index 4daf1f2d..4984291d 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTest.kt @@ -8,7 +8,7 @@ import com.asyncapi.v2.schema.Schema import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.anypointmq.AnypointMQV0_0_1Test import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_1_0Test -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.message.IBMMQMessageBindingTest import com.asyncapi.bindings.kafka.v0._4_0.message.KafkaMessageBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.message.MQTTMessageBindingTest @@ -92,7 +92,7 @@ class MessageTest: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTraitTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTraitTest.kt index 9bfc1f89..b0088816 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTraitTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/message/MessageTraitTest.kt @@ -8,7 +8,7 @@ import com.asyncapi.v2.schema.Schema import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.anypointmq.AnypointMQV0_0_1Test import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_1_0Test -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.message.IBMMQMessageBindingTest import com.asyncapi.bindings.kafka.v0._4_0.message.KafkaMessageBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.message.MQTTMessageBindingTest @@ -64,7 +64,7 @@ class MessageTraitTest: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTest.kt index 52240074..dae98eff 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTest.kt @@ -7,7 +7,7 @@ import com.asyncapi.v2._6_0.model.Tag import com.asyncapi.v2._6_0.model.channel.message.MessageTest import com.asyncapi.v2._6_0.model.channel.message.OneOfMessages import com.asyncapi.bindings.amqp.AMQPV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.kafka.v0._4_0.operation.KafkaOperationBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.operation.MQTTOperationBindingTest import com.asyncapi.bindings.nats.v0._1_0.operation.NATSOperationBindingTest @@ -140,7 +140,7 @@ class OperationTest { Pair("amqp1", Reference("#/components/operationBindings/amqp1")), Pair("anypointmq", Reference("#/components/operationBindings/anypointmq")), Pair("googlepubsub", Reference("#/components/operationBindings/googlepubsub")), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", Reference("#/components/operationBindings/ibmmq")), Pair("jms", Reference("#/components/operationBindings/jms")), Pair("kafka", KafkaOperationBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTraitTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTraitTest.kt index 519c679c..414e8850 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTraitTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/channel/operation/OperationTraitTest.kt @@ -5,7 +5,7 @@ import com.asyncapi.v2.SerDeTest import com.asyncapi.v2._6_0.model.ExternalDocumentation import com.asyncapi.v2._6_0.model.Tag import com.asyncapi.bindings.amqp.AMQPV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.kafka.v0._4_0.operation.KafkaOperationBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.operation.MQTTOperationBindingTest import com.asyncapi.bindings.nats.v0._1_0.operation.NATSOperationBindingTest @@ -44,7 +44,7 @@ class OperationTraitTest: SerDeTest() { Pair("amqp1", Reference("#/components/operationBindings/amqp1")), Pair("anypointmq", Reference("#/components/operationBindings/anypointmq")), Pair("googlepubsub", Reference("#/components/operationBindings/googlepubsub")), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", Reference("#/components/operationBindings/ibmmq")), Pair("jms", Reference("#/components/operationBindings/jms")), Pair("kafka", KafkaOperationBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/server/ServerTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/server/ServerTest.kt index de9125c0..acf5974e 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/server/ServerTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v2/_6_0/model/server/ServerTest.kt @@ -6,7 +6,7 @@ import com.asyncapi.v2._6_0.model.Tag import com.asyncapi.bindings.amqp1.v0._1_0.server.AMQP1ServerBinding; import com.asyncapi.bindings.anypointmq.v0._0_1.server.AnypointMQServerBinding import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.server.HTTPServerBinding +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.server.IBMMQServerBinding import com.asyncapi.bindings.jms.v0._0_1.server.JMSServerBinding import com.asyncapi.bindings.kafka.v0._4_0.server.KafkaServerBinding @@ -72,7 +72,7 @@ class ServerTest: SerDeTest() { Pair("amqp1", AMQP1ServerBinding()), Pair("anypointmq", AnypointMQServerBinding()), Pair("googlepubsub", GooglePubSubV0_2_0Test.serverBinding()), - Pair("http", HTTPServerBinding()), + Pair("http", HTTPV0_3_0Test.serverBinding()), Pair( "ibmmq", IBMMQServerBinding.builder() diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTest.kt index 12b3e6ef..58952e88 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTest.kt @@ -7,7 +7,7 @@ import com.asyncapi.v3._0_0.model.Tag import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.anypointmq.AnypointMQV0_0_1Test import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_1_0Test -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.message.IBMMQMessageBindingTest import com.asyncapi.bindings.kafka.v0._4_0.message.KafkaMessageBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.message.MQTTMessageBindingTest @@ -88,7 +88,7 @@ class MessageTestWithSchema: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), @@ -141,7 +141,7 @@ class MessageTestWithReference: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), @@ -231,7 +231,7 @@ class MessageTestWithMultiFormatSchema: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTraitTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTraitTest.kt index 21237651..178d2738 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTraitTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/channel/message/MessageTraitTest.kt @@ -8,7 +8,7 @@ import com.asyncapi.v3.schema.AsyncAPISchema import com.asyncapi.bindings.amqp.AMQPV0_2_0Test import com.asyncapi.bindings.anypointmq.AnypointMQV0_0_1Test import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_1_0Test -import com.asyncapi.bindings.http.v0._1_0.message.HTTPMessageBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.message.IBMMQMessageBindingTest import com.asyncapi.bindings.kafka.v0._4_0.message.KafkaMessageBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.message.MQTTMessageBindingTest @@ -63,7 +63,7 @@ class MessageTraitTestWithSchema: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), @@ -118,7 +118,7 @@ class MessageTraitTestWithReference: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), @@ -190,7 +190,7 @@ class MessageTraitTestWithMultiFormatSchema: SerDeTest() { Pair("amqp1", Reference("#/components/messageBindings/amqp1")), Pair("anypointmq", AnypointMQV0_0_1Test.messageBinding()), Pair("googlepubsub", GooglePubSubV0_1_0Test.messageBinding()), - Pair("http", HTTPMessageBindingTest().build()), + Pair("http", HTTPV0_3_0Test.messageBinding()), Pair("ibmmq", IBMMQMessageBindingTest().build()), Pair("jms", Reference("#/components/messageBindings/jms")), Pair("kafka", KafkaMessageBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTest.kt index 5d1ac7c9..fde673a3 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTest.kt @@ -1,7 +1,7 @@ package com.asyncapi.v3._0_0.model.operation import com.asyncapi.bindings.amqp.AMQPV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.kafka.v0._4_0.operation.KafkaOperationBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.operation.MQTTOperationBindingTest import com.asyncapi.bindings.nats.v0._1_0.operation.NATSOperationBindingTest @@ -71,7 +71,7 @@ class OperationTest: SerDeTest() { Pair("googlepubsub", Reference("#/components/operationBindings/googlepubsub") ), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", Reference("#/components/operationBindings/ibmmq")), Pair("jms", Reference("#/components/operationBindings/jms")), Pair("kafka", KafkaOperationBindingTest().build()), @@ -129,7 +129,7 @@ class OperationTestWithReference: SerDeTest() { Pair("googlepubsub", Reference("#/components/operationBindings/googlepubsub") ), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", Reference("#/components/operationBindings/ibmmq")), Pair("jms", Reference("#/components/operationBindings/jms")), Pair("kafka", KafkaOperationBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTraitTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTraitTest.kt index 4b643d7c..1b1f7ccc 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTraitTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/operation/OperationTraitTest.kt @@ -1,7 +1,7 @@ package com.asyncapi.v3._0_0.model.operation import com.asyncapi.bindings.amqp.AMQPV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.operation.HTTPOperationBindingTest +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.kafka.v0._4_0.operation.KafkaOperationBindingTest import com.asyncapi.bindings.mqtt.v0._1_0.operation.MQTTOperationBindingTest import com.asyncapi.bindings.nats.v0._1_0.operation.NATSOperationBindingTest @@ -51,7 +51,7 @@ class OperationTraitTest: SerDeTest() { Pair("googlepubsub", Reference("#/components/operationBindings/googlepubsub") ), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", Reference("#/components/operationBindings/ibmmq")), Pair("jms", Reference("#/components/operationBindings/jms")), Pair("kafka", KafkaOperationBindingTest().build()), @@ -111,7 +111,7 @@ class OperationTraitTestWithReference: SerDeTest() { Pair("googlepubsub", Reference("#/components/operationBindings/googlepubsub") ), - Pair("http", HTTPOperationBindingTest().build()), + Pair("http", HTTPV0_3_0Test.operationBinding()), Pair("ibmmq", Reference("#/components/operationBindings/ibmmq")), Pair("jms", Reference("#/components/operationBindings/jms")), Pair("kafka", KafkaOperationBindingTest().build()), diff --git a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/server/ServerTest.kt b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/server/ServerTest.kt index 769d2979..af387456 100644 --- a/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/server/ServerTest.kt +++ b/asyncapi-core/src/test/kotlin/com/asyncapi/v3/_0_0/model/server/ServerTest.kt @@ -7,7 +7,7 @@ import com.asyncapi.v3._0_0.model.Tag import com.asyncapi.bindings.amqp1.v0._1_0.server.AMQP1ServerBinding import com.asyncapi.bindings.anypointmq.v0._0_1.server.AnypointMQServerBinding import com.asyncapi.bindings.googlepubsub.GooglePubSubV0_2_0Test -import com.asyncapi.bindings.http.v0._1_0.server.HTTPServerBinding +import com.asyncapi.bindings.http.HTTPV0_3_0Test import com.asyncapi.bindings.ibmmq.v0._1_0.server.IBMMQServerBinding import com.asyncapi.bindings.jms.v0._0_1.server.JMSServerBinding import com.asyncapi.bindings.kafka.v0._4_0.server.KafkaServerBinding @@ -82,7 +82,7 @@ class ServerTest: SerDeTest() { Pair("amqp1", AMQP1ServerBinding()), Pair("anypointmq", AnypointMQServerBinding()), Pair("googlepubsub", GooglePubSubV0_2_0Test.serverBinding()), - Pair("http", HTTPServerBinding()), + Pair("http", HTTPV0_3_0Test.serverBinding()), Pair( "ibmmq", IBMMQServerBinding.builder() @@ -199,7 +199,7 @@ class ServerTestWithReference: SerDeTest() { Pair("amqp1", AMQP1ServerBinding()), Pair("anypointmq", AnypointMQServerBinding()), Pair("googlepubsub", GooglePubSubV0_2_0Test.serverBinding()), - Pair("http", HTTPServerBinding()), + Pair("http", HTTPV0_3_0Test.serverBinding()), Pair( "ibmmq", IBMMQServerBinding.builder() diff --git a/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding - extended.json new file mode 100644 index 00000000..32459b79 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.1.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding - wrongly extended.json new file mode 100644 index 00000000..a1ecfd51 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "0.1.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding.json new file mode 100644 index 00000000..04dbf945 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.1.0/channel/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "0.1.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/message/httpMessageBinding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/message/binding - extended.json similarity index 100% rename from asyncapi-core/src/test/resources/bindings/http/message/httpMessageBinding - extended.json rename to asyncapi-core/src/test/resources/bindings/http/0.1.0/message/binding - extended.json diff --git a/asyncapi-core/src/test/resources/bindings/http/message/httpMessageBinding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/message/binding - wrongly extended.json similarity index 100% rename from asyncapi-core/src/test/resources/bindings/http/message/httpMessageBinding - wrongly extended.json rename to asyncapi-core/src/test/resources/bindings/http/0.1.0/message/binding - wrongly extended.json diff --git a/asyncapi-core/src/test/resources/bindings/http/message/httpMessageBinding.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/message/binding.json similarity index 100% rename from asyncapi-core/src/test/resources/bindings/http/message/httpMessageBinding.json rename to asyncapi-core/src/test/resources/bindings/http/0.1.0/message/binding.json diff --git a/asyncapi-core/src/test/resources/bindings/http/operation/httpOperationBinding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/operation/binding - extended.json similarity index 100% rename from asyncapi-core/src/test/resources/bindings/http/operation/httpOperationBinding - extended.json rename to asyncapi-core/src/test/resources/bindings/http/0.1.0/operation/binding - extended.json diff --git a/asyncapi-core/src/test/resources/bindings/http/operation/httpOperationBinding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/operation/binding - wrongly extended.json similarity index 100% rename from asyncapi-core/src/test/resources/bindings/http/operation/httpOperationBinding - wrongly extended.json rename to asyncapi-core/src/test/resources/bindings/http/0.1.0/operation/binding - wrongly extended.json diff --git a/asyncapi-core/src/test/resources/bindings/http/operation/httpOperationBinding.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/operation/binding.json similarity index 100% rename from asyncapi-core/src/test/resources/bindings/http/operation/httpOperationBinding.json rename to asyncapi-core/src/test/resources/bindings/http/0.1.0/operation/binding.json diff --git a/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding - extended.json new file mode 100644 index 00000000..32459b79 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.1.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding - wrongly extended.json new file mode 100644 index 00000000..a1ecfd51 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "0.1.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding.json new file mode 100644 index 00000000..04dbf945 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.1.0/server/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "0.1.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding - extended.json new file mode 100644 index 00000000..3e09b93f --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.2.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding - wrongly extended.json new file mode 100644 index 00000000..1cb38f9c --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "0.2.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding.json new file mode 100644 index 00000000..a22565a8 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/channel/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "0.2.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding - extended.json new file mode 100644 index 00000000..da145ec9 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding - extended.json @@ -0,0 +1,17 @@ +{ + "bindingVersion" : "0.2.0", + "headers" : { + "type" : "object", + "properties" : { + "Content-Type" : { + "type" : "string", + "enum" : [ "application/json" ] + } + } + }, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding - wrongly extended.json new file mode 100644 index 00000000..8a7a3e9f --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding - wrongly extended.json @@ -0,0 +1,20 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "bindingVersion": "0.2.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding.json new file mode 100644 index 00000000..db63292c --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/message/binding.json @@ -0,0 +1,14 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "bindingVersion": "0.2.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding - extended.json new file mode 100644 index 00000000..53f3fd82 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding - extended.json @@ -0,0 +1,21 @@ +{ + "bindingVersion" : "0.2.0", + "method" : "GET", + "query" : { + "type" : "object", + "required" : [ "companyId" ], + "properties" : { + "companyId" : { + "type" : "number", + "minimum" : 1, + "description" : "The Id of the company." + } + }, + "additionalProperties" : false + }, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding - wrongly extended.json new file mode 100644 index 00000000..01e319f5 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding - wrongly extended.json @@ -0,0 +1,24 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "0.2.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding.json new file mode 100644 index 00000000..0cd59c15 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/operation/binding.json @@ -0,0 +1,18 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "0.2.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding - extended.json new file mode 100644 index 00000000..3e09b93f --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.2.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding - wrongly extended.json new file mode 100644 index 00000000..1cb38f9c --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "0.2.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding.json new file mode 100644 index 00000000..a22565a8 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.2.0/server/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "0.2.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding - wrongly extended.json new file mode 100644 index 00000000..943a1361 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "0.3.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding.json new file mode 100644 index 00000000..4c2843f6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/channel/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "0.3.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding - extended.json new file mode 100644 index 00000000..04ea597e --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding - extended.json @@ -0,0 +1,18 @@ +{ + "bindingVersion" : "0.3.0", + "headers" : { + "type" : "object", + "properties" : { + "Content-Type" : { + "type" : "string", + "enum" : [ "application/json" ] + } + } + }, + "statusCode" : 200, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding - wrongly extended.json new file mode 100644 index 00000000..6713a48d --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding - wrongly extended.json @@ -0,0 +1,21 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "0.3.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding.json new file mode 100644 index 00000000..252654a3 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/message/binding.json @@ -0,0 +1,15 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "0.3.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding - extended.json new file mode 100644 index 00000000..af380825 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding - extended.json @@ -0,0 +1,21 @@ +{ + "bindingVersion" : "0.3.0", + "method" : "GET", + "query" : { + "type" : "object", + "required" : [ "companyId" ], + "properties" : { + "companyId" : { + "type" : "number", + "minimum" : 1, + "description" : "The Id of the company." + } + }, + "additionalProperties" : false + }, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding - wrongly extended.json new file mode 100644 index 00000000..856e3480 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding - wrongly extended.json @@ -0,0 +1,24 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "0.3.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding.json new file mode 100644 index 00000000..90841995 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/operation/binding.json @@ -0,0 +1,18 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "0.3.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding - wrongly extended.json new file mode 100644 index 00000000..943a1361 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "0.3.0", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding.json b/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding.json new file mode 100644 index 00000000..4c2843f6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/0.3.0/server/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "0.3.0" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding - wrongly extended.json new file mode 100644 index 00000000..18560ee8 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "latest", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding.json b/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding.json new file mode 100644 index 00000000..cdf165f6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/channel/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "latest" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/message/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/message/binding - extended.json new file mode 100644 index 00000000..04ea597e --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/message/binding - extended.json @@ -0,0 +1,18 @@ +{ + "bindingVersion" : "0.3.0", + "headers" : { + "type" : "object", + "properties" : { + "Content-Type" : { + "type" : "string", + "enum" : [ "application/json" ] + } + } + }, + "statusCode" : 200, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/message/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/message/binding - wrongly extended.json new file mode 100644 index 00000000..0ac43781 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/message/binding - wrongly extended.json @@ -0,0 +1,21 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "latest", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/message/binding.json b/asyncapi-core/src/test/resources/bindings/http/latest/message/binding.json new file mode 100644 index 00000000..a9a9a5fa --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/message/binding.json @@ -0,0 +1,15 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "latest" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding - extended.json new file mode 100644 index 00000000..af380825 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding - extended.json @@ -0,0 +1,21 @@ +{ + "bindingVersion" : "0.3.0", + "method" : "GET", + "query" : { + "type" : "object", + "required" : [ "companyId" ], + "properties" : { + "companyId" : { + "type" : "number", + "minimum" : 1, + "description" : "The Id of the company." + } + }, + "additionalProperties" : false + }, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding - wrongly extended.json new file mode 100644 index 00000000..70ad77e6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding - wrongly extended.json @@ -0,0 +1,24 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "latest", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding.json b/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding.json new file mode 100644 index 00000000..ee1efe89 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/operation/binding.json @@ -0,0 +1,18 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "latest" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/server/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/server/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/server/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/server/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/latest/server/binding - wrongly extended.json new file mode 100644 index 00000000..18560ee8 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/server/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "latest", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/latest/server/binding.json b/asyncapi-core/src/test/resources/bindings/http/latest/server/binding.json new file mode 100644 index 00000000..cdf165f6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/latest/server/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "latest" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding - wrongly extended.json new file mode 100644 index 00000000..0dee3264 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "unknown version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding.json new file mode 100644 index 00000000..defc96bf --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/channel/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "unknown version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding - extended.json new file mode 100644 index 00000000..04ea597e --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding - extended.json @@ -0,0 +1,18 @@ +{ + "bindingVersion" : "0.3.0", + "headers" : { + "type" : "object", + "properties" : { + "Content-Type" : { + "type" : "string", + "enum" : [ "application/json" ] + } + } + }, + "statusCode" : 200, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding - wrongly extended.json new file mode 100644 index 00000000..ed22e53c --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding - wrongly extended.json @@ -0,0 +1,21 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "unknown version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding.json new file mode 100644 index 00000000..f98355ec --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/message/binding.json @@ -0,0 +1,15 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "unknown version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding - extended.json new file mode 100644 index 00000000..af380825 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding - extended.json @@ -0,0 +1,21 @@ +{ + "bindingVersion" : "0.3.0", + "method" : "GET", + "query" : { + "type" : "object", + "required" : [ "companyId" ], + "properties" : { + "companyId" : { + "type" : "number", + "minimum" : 1, + "description" : "The Id of the company." + } + }, + "additionalProperties" : false + }, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding - wrongly extended.json new file mode 100644 index 00000000..ad5af93b --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding - wrongly extended.json @@ -0,0 +1,24 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "unknown version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding.json new file mode 100644 index 00000000..ff6535d0 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/operation/binding.json @@ -0,0 +1,18 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "unknown version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding - wrongly extended.json new file mode 100644 index 00000000..0dee3264 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "unknown version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding.json b/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding.json new file mode 100644 index 00000000..defc96bf --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/unknown version/server/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "unknown version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding - wrongly extended.json new file mode 100644 index 00000000..7365f2b2 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "without version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding.json b/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding.json new file mode 100644 index 00000000..0c27f736 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/channel/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "without version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/message/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/message/binding - extended.json new file mode 100644 index 00000000..04ea597e --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/message/binding - extended.json @@ -0,0 +1,18 @@ +{ + "bindingVersion" : "0.3.0", + "headers" : { + "type" : "object", + "properties" : { + "Content-Type" : { + "type" : "string", + "enum" : [ "application/json" ] + } + } + }, + "statusCode" : 200, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/message/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/message/binding - wrongly extended.json new file mode 100644 index 00000000..ee24526c --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/message/binding - wrongly extended.json @@ -0,0 +1,21 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "without version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/message/binding.json b/asyncapi-core/src/test/resources/bindings/http/without version/message/binding.json new file mode 100644 index 00000000..d60969fa --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/message/binding.json @@ -0,0 +1,15 @@ +{ + "headers": { + "type": "object", + "properties": { + "Content-Type": { + "type": "string", + "enum": [ + "application/json" + ] + } + } + }, + "statusCode": 200, + "bindingVersion": "without version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding - extended.json new file mode 100644 index 00000000..af380825 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding - extended.json @@ -0,0 +1,21 @@ +{ + "bindingVersion" : "0.3.0", + "method" : "GET", + "query" : { + "type" : "object", + "required" : [ "companyId" ], + "properties" : { + "companyId" : { + "type" : "number", + "minimum" : 1, + "description" : "The Id of the company." + } + }, + "additionalProperties" : false + }, + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding - wrongly extended.json new file mode 100644 index 00000000..7b223911 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding - wrongly extended.json @@ -0,0 +1,24 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "without version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding.json b/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding.json new file mode 100644 index 00000000..8ba98984 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/operation/binding.json @@ -0,0 +1,18 @@ +{ + "method": "GET", + "query": { + "type": "object", + "required": [ + "companyId" + ], + "properties": { + "companyId": { + "type": "number", + "minimum": 1, + "description": "The Id of the company." + } + }, + "additionalProperties": false + }, + "bindingVersion": "without version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/server/binding - extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/server/binding - extended.json new file mode 100644 index 00000000..8310c9d6 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/server/binding - extended.json @@ -0,0 +1,8 @@ +{ + "bindingVersion" : "0.3.0", + "x-number" : 0, + "x-string" : "", + "x-object" : { + "property" : { } + } +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/server/binding - wrongly extended.json b/asyncapi-core/src/test/resources/bindings/http/without version/server/binding - wrongly extended.json new file mode 100644 index 00000000..7365f2b2 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/server/binding - wrongly extended.json @@ -0,0 +1,9 @@ +{ + "bindingVersion": "without version", + "x-number": 0, + "x-string": "", + "x-object": { + "property": {} + }, + "ext-number": 1 +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/bindings/http/without version/server/binding.json b/asyncapi-core/src/test/resources/bindings/http/without version/server/binding.json new file mode 100644 index 00000000..0c27f736 --- /dev/null +++ b/asyncapi-core/src/test/resources/bindings/http/without version/server/binding.json @@ -0,0 +1,3 @@ +{ + "bindingVersion": "without version" +} \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/examples/v2.0.0/gitter-streaming.yml b/asyncapi-core/src/test/resources/examples/v2.0.0/gitter-streaming.yml index 85ed148f..9e130089 100644 --- a/asyncapi-core/src/test/resources/examples/v2.0.0/gitter-streaming.yml +++ b/asyncapi-core/src/test/resources/examples/v2.0.0/gitter-streaming.yml @@ -30,8 +30,7 @@ channels: - events subscribe: bindings: - http: - type: response + http: {} message: $ref: '#/components/messages/chatMessage' diff --git a/asyncapi-core/src/test/resources/examples/v2.0.0/operation-security.yml b/asyncapi-core/src/test/resources/examples/v2.0.0/operation-security.yml index c0f77bc2..4f60f609 100644 --- a/asyncapi-core/src/test/resources/examples/v2.0.0/operation-security.yml +++ b/asyncapi-core/src/test/resources/examples/v2.0.0/operation-security.yml @@ -12,7 +12,6 @@ channels: $ref: '#/components/messages/message' bindings: http: - type: request method: POST components: messages: diff --git a/asyncapi-core/src/test/resources/examples/v2.6.0/gitter-streaming.yml b/asyncapi-core/src/test/resources/examples/v2.6.0/gitter-streaming.yml index 335286be..a815a8ec 100644 --- a/asyncapi-core/src/test/resources/examples/v2.6.0/gitter-streaming.yml +++ b/asyncapi-core/src/test/resources/examples/v2.6.0/gitter-streaming.yml @@ -30,8 +30,7 @@ channels: - events subscribe: bindings: - http: - type: response + http: {} message: oneOf: - $ref: '#/components/messages/chatMessage' diff --git a/asyncapi-core/src/test/resources/examples/v2.6.0/operation-security.yml b/asyncapi-core/src/test/resources/examples/v2.6.0/operation-security.yml index fed5e202..acf2b6a0 100644 --- a/asyncapi-core/src/test/resources/examples/v2.6.0/operation-security.yml +++ b/asyncapi-core/src/test/resources/examples/v2.6.0/operation-security.yml @@ -12,7 +12,6 @@ channels: $ref: '#/components/messages/message' bindings: http: - type: request method: POST security: - petstore_auth: diff --git a/asyncapi-core/src/test/resources/examples/v3.0.0/gitter-streaming-asyncapi.yml b/asyncapi-core/src/test/resources/examples/v3.0.0/gitter-streaming-asyncapi.yml index fda2c45e..9c957476 100644 --- a/asyncapi-core/src/test/resources/examples/v3.0.0/gitter-streaming-asyncapi.yml +++ b/asyncapi-core/src/test/resources/examples/v3.0.0/gitter-streaming-asyncapi.yml @@ -157,6 +157,7 @@ components: Trailer: type: string const: \r\n + statusCode: 200 heartbeat: summary: Its purpose is to keep the connection alive. payload: @@ -175,4 +176,5 @@ components: const: chunked Trailer: type: string - const: \r\n \ No newline at end of file + const: \r\n + statusCode: 200 \ No newline at end of file diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi - extended.json index a6ce675e..0c78a705 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi - extended.json @@ -46,7 +46,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -144,8 +146,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -263,8 +264,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -385,8 +385,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -504,8 +503,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -657,7 +655,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -666,7 +664,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -773,7 +772,9 @@ "name" : "projects/your-project/schemas/message-proto" } }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "destinationType" : "topic", @@ -961,7 +962,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -970,7 +971,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1183,8 +1185,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -1327,7 +1328,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1336,7 +1337,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1402,7 +1404,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -1494,7 +1498,9 @@ "name" : "projects/your-project/schemas/message-proto" } }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "destinationType" : "topic", @@ -1598,8 +1604,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -1704,7 +1709,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1713,7 +1718,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi.json index 1664c657..ab1af5c9 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/asyncapi.json @@ -133,7 +133,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -147,7 +146,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -252,7 +251,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -268,7 +266,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, @@ -378,7 +376,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -392,7 +389,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -497,7 +494,6 @@ "anypointmq": { }, "googlepubsub": { }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -513,7 +509,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { }, "jms": { }, @@ -665,7 +661,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -976,7 +973,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1187,7 +1185,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -1203,7 +1200,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, @@ -1345,7 +1342,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1598,7 +1596,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -1612,7 +1609,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -1711,7 +1708,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - extended.json index e10b5662..cdf89275 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - extended.json @@ -40,8 +40,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -159,8 +158,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -281,8 +279,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -400,8 +397,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -553,7 +549,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -562,7 +558,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -669,7 +666,9 @@ "name" : "projects/your-project/schemas/message-proto" } }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "destinationType" : "topic", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - wrongly extended.json index 9b6cc41d..ef7da0d7 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem - wrongly extended.json @@ -36,7 +36,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -50,7 +49,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -155,7 +154,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -171,7 +169,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, @@ -281,7 +279,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -295,7 +292,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -400,7 +397,6 @@ "anypointmq": { }, "googlepubsub": { }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -416,7 +412,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { }, "jms": { }, @@ -568,7 +564,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem.json index a6ab4905..747df167 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/channelItem.json @@ -36,7 +36,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -50,7 +49,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -155,7 +154,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -171,7 +169,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, @@ -281,7 +279,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -295,7 +292,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -400,7 +397,6 @@ "anypointmq": { }, "googlepubsub": { }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -416,7 +412,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { }, "jms": { }, @@ -568,7 +564,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - extended.json index e9b39d6c..0736fd8a 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - extended.json @@ -73,7 +73,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -82,7 +82,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - wrongly extended.json index 07b8922b..c747ebca 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message - wrongly extended.json @@ -80,7 +80,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message.json index 6cc96b2f..1c757572 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/message.json @@ -80,7 +80,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - extended.json index 718fd527..7ca0e4cf 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - extended.json @@ -62,7 +62,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -71,7 +71,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - wrongly extended.json index e64abac3..4f3147eb 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait - wrongly extended.json @@ -69,7 +69,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait.json index ff9d399a..2c1e57c2 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/message/messageTrait.json @@ -69,7 +69,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - extended.json index eaa7a05f..a17fc37f 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - extended.json @@ -38,8 +38,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -157,8 +156,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -310,7 +308,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -319,7 +317,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - wrongly extended.json index f0c50a9f..d83eca89 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message - wrongly extended.json @@ -34,7 +34,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -48,7 +47,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -153,7 +152,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -169,7 +167,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, @@ -321,7 +319,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message.json index 3938d574..3eb3eacf 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with message.json @@ -34,7 +34,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -48,7 +47,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -153,7 +152,6 @@ "anypointmq": { }, "googlepubsub": { }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -169,7 +167,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { }, "jms": { }, @@ -321,7 +319,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - extended.json index 257ebc9f..d057ad7b 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - extended.json @@ -38,8 +38,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -157,8 +156,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - wrongly extended.json index df38ea47..90a25b9b 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message - wrongly extended.json @@ -34,7 +34,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -48,7 +47,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -153,7 +152,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -169,7 +167,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message.json index 335850f2..b22c1e9c 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operation with reference to message.json @@ -34,7 +34,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -48,7 +47,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -153,7 +152,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -169,7 +167,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - extended.json index 88e49b98..82f865dd 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - extended.json @@ -38,8 +38,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - wrongly extended.json index 208b0075..eb460f2a 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait - wrongly extended.json @@ -38,7 +38,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -54,7 +53,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait.json index c133052b..f35b6bf6 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/channel/operation/operationTrait.json @@ -38,7 +38,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -54,7 +53,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - extended.json index 32949e56..31549965 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - extended.json @@ -104,7 +104,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -113,7 +113,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -326,8 +327,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -470,7 +470,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -479,7 +479,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -545,7 +546,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -637,7 +640,9 @@ "name" : "projects/your-project/schemas/message-proto" } }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "destinationType" : "topic", @@ -741,8 +746,7 @@ "bindingVersion" : "0.2.0" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -847,7 +851,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -856,7 +860,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - wrongly extended.json index bc4b8418..d8f07acc 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components - wrongly extended.json @@ -111,7 +111,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -322,7 +323,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -338,7 +338,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, @@ -480,7 +480,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -733,7 +734,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -747,7 +747,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -846,7 +846,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components.json index f2cfe194..fd2c807f 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/components/components.json @@ -111,7 +111,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -322,7 +323,6 @@ "anypointmq": {}, "googlepubsub": {}, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -338,7 +338,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": {}, "jms": {}, @@ -480,7 +480,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -733,7 +734,6 @@ "anypointmq" : { }, "googlepubsub" : { }, "http" : { - "type" : "request", "method" : "GET", "query" : { "type" : "object", @@ -747,7 +747,7 @@ }, "additionalProperties" : false }, - "bindingVersion" : "0.1.0" + "bindingVersion" : "0.3.0" }, "ibmmq" : { }, "jms" : { }, @@ -846,7 +846,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/server/server - extended.json b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/server/server - extended.json index 2ac13418..a071e10f 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.0.0/model/server/server - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.0.0/model/server/server - extended.json @@ -26,7 +26,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi - extended.json index 3992d899..c4ac4c7c 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi - extended.json @@ -55,7 +55,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -161,8 +163,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -297,8 +298,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -468,7 +468,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -477,7 +477,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -598,8 +599,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -734,8 +734,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -902,7 +901,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -911,7 +910,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1205,7 +1205,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -1321,8 +1323,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -1457,8 +1458,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -1628,7 +1628,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1637,7 +1637,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1758,8 +1759,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -1894,8 +1894,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -2062,7 +2061,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2071,7 +2070,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2373,7 +2373,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2382,7 +2382,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2626,8 +2627,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -2788,7 +2788,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2797,7 +2797,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2887,7 +2888,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -3101,8 +3104,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -3221,7 +3223,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3230,7 +3232,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi.json index 8684ba91..85c47dd3 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/asyncapi.json @@ -168,7 +168,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -184,7 +183,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -329,7 +328,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -345,7 +343,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -525,7 +523,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -661,7 +660,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -677,7 +675,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -822,7 +820,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -838,7 +835,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -1013,7 +1010,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1457,7 +1455,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -1473,7 +1470,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -1618,7 +1615,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -1634,7 +1630,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -1814,7 +1810,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1950,7 +1947,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -1966,7 +1962,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -2111,7 +2107,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -2127,7 +2122,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -2302,7 +2297,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2634,7 +2630,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2892,7 +2889,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -2908,7 +2904,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -3076,7 +3072,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3393,7 +3390,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -3409,7 +3405,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -3537,7 +3533,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - extended.json index 2c8ac817..c04dfb99 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - extended.json @@ -44,8 +44,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -180,8 +179,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -351,7 +349,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -360,7 +358,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -481,8 +480,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -617,8 +615,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -785,7 +782,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -794,7 +791,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - wrongly extended.json index b0b28043..cb857fe3 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem - wrongly extended.json @@ -56,7 +56,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -72,7 +71,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -217,7 +216,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -233,7 +231,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -413,7 +411,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -549,7 +548,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -565,7 +563,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -710,7 +708,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -726,7 +723,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -901,7 +898,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem.json index eb5ac519..fe6406ca 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/channelItem.json @@ -56,7 +56,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -72,7 +71,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -217,7 +216,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -233,7 +231,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -413,7 +411,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -549,7 +548,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -565,7 +563,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -710,7 +708,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -726,7 +723,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -901,7 +898,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - extended.json index 4400042c..22cead65 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - extended.json @@ -74,7 +74,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -83,7 +83,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - wrongly extended.json index 7caf1254..bcfd1430 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message - wrongly extended.json @@ -83,7 +83,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message.json index ce97a10f..52120fef 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/message.json @@ -83,7 +83,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - extended.json index eb2abc06..f40f2f37 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - extended.json @@ -63,7 +63,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -72,7 +72,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - wrongly extended.json index 9fdd8bf8..e5b458aa 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait - wrongly extended.json @@ -72,7 +72,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait.json index 0b188b7a..6bf2b6ba 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/messageTrait.json @@ -72,7 +72,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/oneOfMessages.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/oneOfMessages.json index 435dd64b..d87f7c1f 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/oneOfMessages.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/message/oneOfMessages.json @@ -88,7 +88,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message - extended.json index 1b1ad060..5c6feaa3 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message - extended.json @@ -41,8 +41,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -177,8 +176,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -345,7 +343,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -354,7 +352,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message.json index 68896895..7be3b9b9 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with message.json @@ -51,7 +51,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -67,7 +66,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -212,7 +211,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -228,7 +226,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -403,7 +401,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - extended.json index 0ee336e6..3eaa6f85 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - extended.json @@ -41,8 +41,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -177,8 +176,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -348,7 +346,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -357,7 +355,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - wrongly extended.json index 0980fcbc..c889a632 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message - wrongly extended.json @@ -51,7 +51,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -67,7 +66,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -212,7 +211,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -228,7 +226,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -408,7 +406,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message.json index 18ca41cb..aa6c6d0b 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with oneOf message.json @@ -51,7 +51,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -67,7 +66,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -212,7 +211,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -228,7 +226,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -408,7 +406,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - extended.json index a92725a4..9a450a2a 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - extended.json @@ -41,8 +41,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -177,8 +176,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - wrongly extended.json index a283b17e..7b9dc4c2 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message - wrongly extended.json @@ -51,7 +51,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -67,7 +66,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -212,7 +211,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -228,7 +226,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message.json index 56fd6fd1..8094e789 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operation with reference to message.json @@ -51,7 +51,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -67,7 +66,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -212,7 +211,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -228,7 +226,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - extended.json index 80f7e485..03e8e89f 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - extended.json @@ -41,8 +41,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - wrongly extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - wrongly extended.json index 068d76a5..9e94323b 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait - wrongly extended.json @@ -51,7 +51,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -67,7 +66,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait.json index 2a102376..42d31af2 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/channel/operation/operationTrait.json @@ -51,7 +51,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -67,7 +66,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components - extended.json index d493e1b2..5947528c 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components - extended.json @@ -67,7 +67,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -183,8 +185,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -319,8 +320,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -490,7 +490,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -499,7 +499,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -620,8 +621,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -756,8 +756,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -924,7 +923,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -933,7 +932,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1235,7 +1235,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1244,7 +1244,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1488,8 +1489,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -1650,7 +1650,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1659,7 +1659,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1749,7 +1750,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -1963,8 +1966,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -2083,7 +2085,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2092,7 +2094,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components.json index fb628bf6..95208d23 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/components/components.json @@ -196,7 +196,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -212,7 +211,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -357,7 +356,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -373,7 +371,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -553,7 +551,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -689,7 +688,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -705,7 +703,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -850,7 +848,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -866,7 +863,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -1041,7 +1038,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1373,7 +1371,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1631,7 +1630,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -1647,7 +1645,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -1815,7 +1813,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2132,7 +2131,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -2148,7 +2146,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -2276,7 +2274,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/server/server - extended.json b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/server/server - extended.json index 451362a3..a2f64a81 100644 --- a/asyncapi-core/src/test/resources/json/v2/2.6.0/model/server/server - extended.json +++ b/asyncapi-core/src/test/resources/json/v2/2.6.0/model/server/server - extended.json @@ -36,7 +36,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi - extended.json index 50ed2309..68afe87d 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi - extended.json @@ -82,7 +82,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -191,7 +193,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -339,7 +343,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -348,7 +352,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -472,7 +477,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -481,7 +486,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -605,7 +611,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -614,7 +620,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -752,7 +759,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -761,7 +768,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -924,7 +932,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -933,7 +941,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1057,7 +1066,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1066,7 +1075,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1190,7 +1200,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1199,7 +1209,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1337,7 +1348,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1346,7 +1357,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1488,7 +1500,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1497,7 +1509,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1621,7 +1634,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1630,7 +1643,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1754,7 +1768,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1763,7 +1777,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1901,7 +1916,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1910,7 +1925,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2256,7 +2272,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2265,7 +2281,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2389,7 +2406,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2398,7 +2415,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2522,7 +2540,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2531,7 +2549,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2669,7 +2688,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2678,7 +2697,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2841,7 +2861,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2850,7 +2870,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2974,7 +2995,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2983,7 +3004,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3107,7 +3129,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3116,7 +3138,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3254,7 +3277,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3263,7 +3286,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3405,7 +3429,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3414,7 +3438,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3538,7 +3563,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3547,7 +3572,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3671,7 +3697,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3680,7 +3706,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3818,7 +3845,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3827,7 +3854,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -4141,8 +4169,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4281,8 +4308,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4420,8 +4446,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4590,8 +4615,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4730,8 +4754,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4869,8 +4892,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -5064,7 +5086,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -5223,7 +5247,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5232,7 +5256,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5356,7 +5381,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5365,7 +5390,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5489,7 +5515,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5498,7 +5524,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5636,7 +5663,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5645,7 +5672,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5808,7 +5836,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5817,7 +5845,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5941,7 +5970,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5950,7 +5979,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6074,7 +6104,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6083,7 +6113,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6221,7 +6252,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6230,7 +6261,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6372,7 +6404,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6381,7 +6413,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6505,7 +6538,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6514,7 +6547,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6638,7 +6672,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6647,7 +6681,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6785,7 +6820,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6794,7 +6829,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7140,7 +7176,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7149,7 +7185,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7273,7 +7310,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7282,7 +7319,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7406,7 +7444,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7415,7 +7453,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7553,7 +7592,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7562,7 +7601,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7725,7 +7765,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7734,7 +7774,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7858,7 +7899,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7867,7 +7908,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7991,7 +8033,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -8000,7 +8042,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -8138,7 +8181,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -8147,7 +8190,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -8289,7 +8333,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -8298,7 +8342,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -8422,7 +8467,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -8431,7 +8476,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -8555,7 +8601,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -8564,7 +8610,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -8702,7 +8749,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -8711,7 +8758,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -9025,8 +9073,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -9165,8 +9212,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -9304,8 +9350,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -9474,8 +9519,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -9614,8 +9658,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -9753,8 +9796,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -9969,7 +10011,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -9978,7 +10020,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -10102,7 +10145,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -10111,7 +10154,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -10235,7 +10279,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -10244,7 +10288,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -10382,7 +10427,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -10391,7 +10436,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -10554,7 +10600,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -10563,7 +10609,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -10687,7 +10734,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -10696,7 +10743,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -10820,7 +10868,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -10829,7 +10877,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -10967,7 +11016,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -10976,7 +11025,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -11118,7 +11168,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -11127,7 +11177,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -11251,7 +11302,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -11260,7 +11311,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -11384,7 +11436,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -11393,7 +11445,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -11531,7 +11584,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -11540,7 +11593,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -11807,8 +11861,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -11947,8 +12000,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -12096,7 +12148,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -12105,7 +12157,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -12243,7 +12296,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -12252,7 +12305,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -12378,7 +12432,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -12387,7 +12441,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -12489,7 +12544,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -12703,8 +12760,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -12823,7 +12879,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -12832,7 +12888,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi.json index cacc25aa..8e189633 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/asyncapi.json @@ -351,7 +351,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -500,7 +501,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -638,7 +640,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -789,7 +792,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -954,7 +958,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1103,7 +1108,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1241,7 +1247,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1392,7 +1399,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1535,7 +1543,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1684,7 +1693,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1822,7 +1832,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1973,7 +1984,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2345,7 +2357,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2494,7 +2507,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2632,7 +2646,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2783,7 +2798,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2948,7 +2964,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3097,7 +3114,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3235,7 +3253,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3386,7 +3405,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3529,7 +3549,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3678,7 +3699,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3816,7 +3838,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3967,7 +3990,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode": 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -4291,7 +4315,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4307,7 +4330,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4455,7 +4478,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4471,7 +4493,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4618,7 +4640,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4634,7 +4655,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4819,7 +4840,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4835,7 +4855,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4983,7 +5003,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4999,7 +5018,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -5146,7 +5165,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -5162,7 +5180,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -5542,7 +5560,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -5691,7 +5710,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -5829,7 +5849,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -5980,7 +6001,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6145,7 +6167,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6294,7 +6317,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6432,7 +6456,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6583,7 +6608,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6726,7 +6752,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6875,7 +6902,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7013,7 +7041,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7164,7 +7193,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7536,7 +7566,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7685,7 +7716,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7823,7 +7855,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7974,7 +8007,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -8139,7 +8173,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -8288,7 +8323,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -8426,7 +8462,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -8577,7 +8614,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -8720,7 +8758,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -8869,7 +8908,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -9007,7 +9047,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -9158,7 +9199,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -9482,7 +9524,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -9498,7 +9539,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -9646,7 +9687,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -9662,7 +9702,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -9809,7 +9849,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -9825,7 +9864,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -10010,7 +10049,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -10026,7 +10064,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -10174,7 +10212,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -10190,7 +10227,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -10337,7 +10374,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -10353,7 +10389,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -10600,7 +10636,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -10749,7 +10786,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -10887,7 +10925,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -11038,7 +11077,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -11203,7 +11243,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -11352,7 +11393,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -11490,7 +11532,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -11641,7 +11684,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -11784,7 +11828,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -11933,7 +11978,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -12071,7 +12117,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -12222,7 +12269,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -12493,7 +12541,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -12509,7 +12556,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -12656,7 +12703,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -12672,7 +12718,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -12838,7 +12884,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -12989,7 +13036,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -13127,7 +13175,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -13444,7 +13493,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -13460,7 +13508,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -13588,7 +13636,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel - extended.json index 475e2a67..c06efe37 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel - extended.json @@ -87,7 +87,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -96,7 +96,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -220,7 +221,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -229,7 +230,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -353,7 +355,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -362,7 +364,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -500,7 +503,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -509,7 +512,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -672,7 +676,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -681,7 +685,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -805,7 +810,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -814,7 +819,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -938,7 +944,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -947,7 +953,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1085,7 +1092,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1094,7 +1101,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1236,7 +1244,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1245,7 +1253,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1369,7 +1378,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1378,7 +1387,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1502,7 +1512,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1511,7 +1521,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1649,7 +1660,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1658,7 +1669,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - extended.json index adbf036e..a9e169a2 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - extended.json @@ -87,7 +87,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -96,7 +96,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -220,7 +221,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -229,7 +230,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -353,7 +355,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -362,7 +364,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -500,7 +503,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -509,7 +512,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -672,7 +676,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -681,7 +685,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -805,7 +810,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -814,7 +819,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -938,7 +944,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -947,7 +953,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1085,7 +1092,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1094,7 +1101,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1236,7 +1244,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1245,7 +1253,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1369,7 +1378,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1378,7 +1387,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1502,7 +1512,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1511,7 +1521,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1649,7 +1660,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1658,7 +1669,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - wrongly extended.json index 2dba6547..4d0ba6f3 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference - wrongly extended.json @@ -111,7 +111,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -260,7 +261,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -398,7 +400,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -549,7 +552,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -714,7 +718,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -863,7 +868,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1001,7 +1007,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1152,7 +1159,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1295,7 +1303,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1444,7 +1453,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1582,7 +1592,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1733,7 +1744,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference.json index a492cd68..ec2082bc 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel with reference.json @@ -111,7 +111,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -260,7 +261,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -398,7 +400,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -549,7 +552,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -714,7 +718,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -863,7 +868,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1001,7 +1007,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1152,7 +1159,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1295,7 +1303,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1444,7 +1453,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1582,7 +1592,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1733,7 +1744,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel.json index 20388e10..4994cf23 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/channel.json @@ -111,7 +111,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -260,7 +261,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -398,7 +400,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -549,7 +552,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -714,7 +718,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -863,7 +868,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1001,7 +1007,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1152,7 +1159,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1295,7 +1303,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1444,7 +1453,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1582,7 +1592,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1733,7 +1744,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - extended.json index 6957cd9c..c23f50d6 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - extended.json @@ -59,7 +59,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -68,7 +68,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -192,7 +193,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -201,7 +202,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -325,7 +327,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -334,7 +336,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -472,7 +475,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -481,7 +484,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - wrongly extended.json index 5848c90f..e4b16f0f 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message - wrongly extended.json @@ -79,7 +79,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -228,7 +229,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -366,7 +368,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -517,7 +520,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - extended.json index 8853685d..28a56f16 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - extended.json @@ -64,7 +64,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -73,7 +73,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -197,7 +198,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -206,7 +207,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -330,7 +332,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -339,7 +341,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -477,7 +480,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -486,7 +489,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - wrongly extended.json index 798dea70..f63a9e27 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2 - wrongly extended.json @@ -84,7 +84,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -233,7 +234,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -371,7 +373,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -522,7 +525,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2.json index 140939d5..ac237541 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message 2.json @@ -84,7 +84,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -233,7 +234,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -371,7 +373,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -522,7 +525,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - extended.json index bf21a66b..1b9b4033 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - extended.json @@ -42,7 +42,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -51,7 +51,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -175,7 +176,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -184,7 +185,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -308,7 +310,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -317,7 +319,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -455,7 +458,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -464,7 +467,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - wrongly extended.json index e207c4e4..c5407278 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference - wrongly extended.json @@ -62,7 +62,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -211,7 +212,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -349,7 +351,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -500,7 +503,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference.json index 60629b5b..b0d5abf0 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message with reference.json @@ -62,7 +62,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -211,7 +212,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -349,7 +351,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -500,7 +503,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message.json index 225f0827..835353f5 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/message.json @@ -79,7 +79,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -228,7 +229,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -366,7 +368,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -517,7 +520,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - extended.json index 6a7f477e..e36b2353 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - extended.json @@ -50,7 +50,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -59,7 +59,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - wrongly extended.json index 4e472db0..0bad188e 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait - wrongly extended.json @@ -70,7 +70,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - extended.json index d442597e..6b09cb9f 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - extended.json @@ -52,7 +52,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -61,7 +61,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - wrongly extended.json index 372e9a77..291ddcb6 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2 - wrongly extended.json @@ -235,7 +235,8 @@ "then" : null, "else" : null }, - "bindingVersion" : "0.1.0" + "statusCode" : 200, + "bindingVersion" : "0.3.0" }, "ibmmq" : { "type" : "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2.json index c9b26960..e9150450 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait 2.json @@ -72,7 +72,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - extended.json index b1c5a9e4..98687e18 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - extended.json @@ -39,7 +39,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -48,7 +48,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - wrongly extended.json index accf02a6..e82e3cfe 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference - wrongly extended.json @@ -59,7 +59,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference.json index 170d3c6a..74b651de 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait with reference.json @@ -59,7 +59,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait.json index 6d03fca2..5967cb3a 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageTrait.json @@ -70,7 +70,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components - extended.json index 2af6d0b6..5f99038c 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components - extended.json @@ -84,7 +84,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -243,7 +245,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -252,7 +254,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -376,7 +379,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -385,7 +388,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -509,7 +513,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -518,7 +522,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -656,7 +661,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -665,7 +670,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -828,7 +834,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -837,7 +843,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -961,7 +968,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -970,7 +977,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1094,7 +1102,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1103,7 +1111,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1241,7 +1250,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1250,7 +1259,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1392,7 +1402,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1401,7 +1411,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1525,7 +1536,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1534,7 +1545,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1658,7 +1670,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1667,7 +1679,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -1805,7 +1818,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -1814,7 +1827,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2160,7 +2174,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2169,7 +2183,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2293,7 +2308,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2302,7 +2317,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2426,7 +2442,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2435,7 +2451,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2573,7 +2590,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2582,7 +2599,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2745,7 +2763,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2754,7 +2772,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -2878,7 +2897,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -2887,7 +2906,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3011,7 +3031,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3020,7 +3040,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3158,7 +3179,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3167,7 +3188,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3309,7 +3331,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3318,7 +3340,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3442,7 +3465,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3451,7 +3474,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3575,7 +3599,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3584,7 +3608,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -3722,7 +3747,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -3731,7 +3756,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -4045,8 +4071,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4185,8 +4210,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4324,8 +4348,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4494,8 +4517,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4634,8 +4656,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4773,8 +4794,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -4989,7 +5009,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -4998,7 +5018,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5122,7 +5143,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5131,7 +5152,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5255,7 +5277,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5264,7 +5286,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5402,7 +5425,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5411,7 +5434,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5574,7 +5598,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5583,7 +5607,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5707,7 +5732,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5716,7 +5741,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5840,7 +5866,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5849,7 +5875,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -5987,7 +6014,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -5996,7 +6023,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6138,7 +6166,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6147,7 +6175,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6271,7 +6300,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6280,7 +6309,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6404,7 +6434,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6413,7 +6443,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6551,7 +6582,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -6560,7 +6591,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -6827,8 +6859,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -6967,8 +6998,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -7116,7 +7146,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7125,7 +7155,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7263,7 +7294,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7272,7 +7303,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7398,7 +7430,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7407,7 +7439,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", @@ -7509,7 +7542,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", @@ -7723,8 +7758,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -7843,7 +7877,7 @@ } }, "http" : { - "bindingVersion" : "0.1.0", + "bindingVersion" : "0.3.0", "headers" : { "type" : "object", "properties" : { @@ -7852,7 +7886,8 @@ "enum" : [ "application/json" ] } } - } + }, + "statusCode" : 200 }, "ibmmq" : { "bindingVersion" : "0.1.0", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components.json index acb016d5..55da0795 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/components/components.json @@ -266,7 +266,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -415,7 +416,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -553,7 +555,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -704,7 +707,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -869,7 +873,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1018,7 +1023,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1156,7 +1162,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1307,7 +1314,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1450,7 +1458,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1599,7 +1608,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1737,7 +1747,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -1888,7 +1899,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2260,7 +2272,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2409,7 +2422,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2547,7 +2561,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2698,7 +2713,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -2863,7 +2879,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3012,7 +3029,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3150,7 +3168,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3301,7 +3320,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3444,7 +3464,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3593,7 +3614,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3731,7 +3753,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -3882,7 +3905,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -4206,7 +4230,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4222,7 +4245,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4370,7 +4393,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4386,7 +4408,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4533,7 +4555,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4549,7 +4570,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4734,7 +4755,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4750,7 +4770,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -4898,7 +4918,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -4914,7 +4933,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -5061,7 +5080,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -5077,7 +5095,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -5324,7 +5342,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -5473,7 +5492,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -5611,7 +5631,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -5762,7 +5783,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -5927,7 +5949,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6076,7 +6099,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6214,7 +6238,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6365,7 +6390,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6508,7 +6534,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6657,7 +6684,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6795,7 +6823,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -6946,7 +6975,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7217,7 +7247,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -7233,7 +7262,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -7380,7 +7409,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -7396,7 +7424,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -7562,7 +7590,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7713,7 +7742,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -7851,7 +7881,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", @@ -8168,7 +8199,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -8184,7 +8214,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -8312,7 +8342,8 @@ } } }, - "bindingVersion": "0.1.0" + "statusCode" : 200, + "bindingVersion": "0.3.0" }, "ibmmq": { "type": "jms", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - extended.json index b71bfc14..6f57baf6 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - extended.json @@ -51,8 +51,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -191,8 +190,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -330,8 +328,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - wrongly extended.json index f084a322..ad4e3d96 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation - wrongly extended.json @@ -59,7 +59,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -75,7 +74,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -223,7 +222,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -239,7 +237,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -386,7 +384,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -402,7 +399,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - extended.json index 0b58575d..c39fcd32 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - extended.json @@ -50,8 +50,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -190,8 +189,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", @@ -329,8 +327,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - wrongly extended.json index b7e9d0fb..d3a8274c 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference - wrongly extended.json @@ -58,7 +58,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -74,7 +73,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -222,7 +221,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -238,7 +236,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -385,7 +383,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -401,7 +398,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference.json index 52cc7196..9ce9700c 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation with reference.json @@ -58,7 +58,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -74,7 +73,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -222,7 +221,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -238,7 +236,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -385,7 +383,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -401,7 +398,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation.json index 1eb50625..1820ec38 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operation.json @@ -59,7 +59,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -75,7 +74,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -223,7 +222,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -239,7 +237,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" @@ -386,7 +384,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -402,7 +399,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - extended.json index 0a70810e..a74c582e 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - extended.json @@ -47,8 +47,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - wrongly extended.json index c9e7b2f4..cceee224 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait - wrongly extended.json @@ -57,7 +57,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -73,7 +72,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - extended.json index d863472c..ad3d432c 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - extended.json @@ -46,8 +46,7 @@ "$ref" : "#/components/operationBindings/googlepubsub" }, "http" : { - "bindingVersion" : "0.1.0", - "type" : "request", + "bindingVersion" : "0.3.0", "method" : "GET", "query" : { "type" : "object", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - wrongly extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - wrongly extended.json index 36426512..1609576f 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - wrongly extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference - wrongly extended.json @@ -56,7 +56,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -72,7 +71,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference.json index b5ba2703..fc121ef8 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait with reference.json @@ -56,7 +56,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -72,7 +71,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait.json index 1e8b5ed2..59bdfa8d 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/operation/operationTrait.json @@ -57,7 +57,6 @@ "$ref": "#/components/operationBindings/googlepubsub" }, "http": { - "type": "request", "method": "GET", "query": { "type": "object", @@ -73,7 +72,7 @@ }, "additionalProperties": false }, - "bindingVersion": "0.1.0" + "bindingVersion": "0.3.0" }, "ibmmq": { "$ref": "#/components/operationBindings/ibmmq" diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server - extended.json index 2ea71b10..8b84a4cd 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server - extended.json @@ -50,7 +50,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1", diff --git a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server with reference - extended.json b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server with reference - extended.json index d7066da6..9e30b383 100644 --- a/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server with reference - extended.json +++ b/asyncapi-core/src/test/resources/json/v3/3.0.0/model/server/server with reference - extended.json @@ -53,7 +53,9 @@ "googlepubsub" : { "bindingVersion" : "0.2.0" }, - "http" : { }, + "http" : { + "bindingVersion" : "0.3.0" + }, "ibmmq" : { "bindingVersion" : "0.1.0", "groupId" : "PRODCLSTR1",