Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

build: 1.0.0-eap-3-snapshot #158

Merged
merged 223 commits into from
Feb 26, 2024
Merged
Changes from 1 commit
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
7b6ecbc
Merge remote-tracking branch 'origin/master'
Pakisan Feb 15, 2023
55a4d0c
feat: AsyncAPI default values for @NotNull fields
Pakisan Mar 17, 2023
bdf61f8
feat: Tag default values for @NotNull fields
Pakisan Mar 17, 2023
23219b3
feat: Reference default values for @NotNull fields
Pakisan Mar 17, 2023
be23dd0
feat: ExternalDocumentation default values for @NotNull fields
Pakisan Mar 17, 2023
59aa6a3
feat: Server default values for @NotNull fields
Pakisan Mar 17, 2023
109fde7
feat: Info default values for @NotNull fields
Pakisan Mar 17, 2023
cd84266
feat: License default values for @NotNull fields
Pakisan Mar 17, 2023
b336177
feat: CorrelationId default values for @NotNull fields
Pakisan Mar 17, 2023
8361ecc
feat: OneOfMessages default values for @NotNull fields
Pakisan Mar 17, 2023
3976097
feat: OpenIdConnectSecurityScheme default values for @NotNull fields
Pakisan Mar 17, 2023
6a65fb4
feat: ApiKeySecurityScheme default values for @NotNull fields
Pakisan Mar 17, 2023
36aa94c
feat: SecurityScheme default values for @NotNull fields
Pakisan Mar 17, 2023
9c76d44
feat: OAuth2SecurityScheme default values for @NotNull fields
Pakisan Mar 17, 2023
aba01dc
feat: AuthorizationCodeOAuthFlow default values for @NotNull fields
Pakisan Mar 17, 2023
d9af9b2
feat: ClientCredentialsOAuthFlow default values for @NotNull fields
Pakisan Mar 17, 2023
d32ee63
feat: ImplicitOAuthFlow default values for @NotNull fields
Pakisan Mar 17, 2023
5c90b82
feat: OAuthFlow default values for @NotNull fields
Pakisan Mar 17, 2023
91a3142
feat: PasswordOAuthFlow default values for @NotNull fields
Pakisan Mar 17, 2023
ae69a30
feat: HttpApiKeySecurityScheme default values for @NotNull fields
Pakisan Mar 17, 2023
e597d48
feat: HttpSecurityScheme default values for @NotNull fields
Pakisan Mar 17, 2023
3f26d1e
Merge pull request #139 from asyncapi/feat/default_values
Pakisan Mar 17, 2023
8ce1d3a
refactor: JavaDoc
Pakisan Mar 17, 2023
b1fca9c
chore: remove jackson-dataformat-yaml
Pakisan Mar 17, 2023
98de92f
feat: AsyncAPI.servers - reference or object
Pakisan Mar 18, 2023
4be72e0
refactor: OpenIdConnectSecurityScheme builder
Pakisan Mar 18, 2023
649c1b5
refactor: ApiKeySecurityScheme builder
Pakisan Mar 18, 2023
7f39e56
refactor: ApiKeySecurityScheme builder
Pakisan Mar 18, 2023
5415d87
refactor: HttpApiKeySecurityScheme builder
Pakisan Mar 18, 2023
a07c7c5
refactor: HttpSecurityScheme builder
Pakisan Mar 18, 2023
26a279c
refactor: OAuth2SecurityScheme builder
Pakisan Mar 18, 2023
00b3967
refactor: AuthorizationCodeOAuthFlow builder
Pakisan Mar 18, 2023
8888062
refactor: ClientCredentialsOAuthFlow builder
Pakisan Mar 18, 2023
51ca2cd
refactor: ImplicitOAuthFlow builder
Pakisan Mar 18, 2023
7c4ab24
refactor: PasswordOAuthFlow builder
Pakisan Mar 18, 2023
0457f43
Merge pull request #140 from asyncapi/refactor/security_scheme_builders
Pakisan Mar 18, 2023
350a84b
refactor: @EqualsAndHashCode(callSuper = true)
Pakisan Mar 18, 2023
56832d1
refactor: AMQPChannelBinding
Pakisan Mar 18, 2023
60ebea8
refactor: AMQPMessageBinding
Pakisan Mar 18, 2023
a75e5b1
refactor: AMQPOperationBinding
Pakisan Mar 18, 2023
dd3c6c2
refactor: AnypointMQChannelBinding
Pakisan Mar 18, 2023
e5b7160
refactor: AnypointMQMessageBinding
Pakisan Mar 18, 2023
8285077
refactor: GooglePubSubChannelBinding
Pakisan Mar 19, 2023
8bb7764
refactor: GooglePubSubMessageBinding
Pakisan Mar 19, 2023
4ebacfb
refactor: HTTPMessageBinding
Pakisan Mar 19, 2023
4889ade
refactor: HTTPOperationBinding
Pakisan Mar 19, 2023
5ebfdbd
refactor: IBMMQServerBinding
Pakisan Mar 19, 2023
1027998
refactor: IBMMQMessageBinding
Pakisan Mar 19, 2023
2922c03
refactor: IBMMQChannelBinding
Pakisan Mar 19, 2023
1eb6678
refactor: KafkaServerBinding
Pakisan Mar 19, 2023
a577461
refactor: KafkaServerBinding
Pakisan Mar 19, 2023
a8dec41
refactor: KafkaChannelBinding
Pakisan Mar 19, 2023
f822531
refactor: KafkaOperationBinding
Pakisan Mar 19, 2023
0f0a7d7
refactor: KafkaMessageBinding
Pakisan Mar 19, 2023
a70ecfc
refactor: MQTTMessageBinding
Pakisan Mar 19, 2023
37d757a
refactor: MQTTOperationBinding
Pakisan Mar 19, 2023
592c689
refactor: MQTTOperationBinding
Pakisan Mar 19, 2023
915724b
refactor: MQTTServerBinding
Pakisan Mar 19, 2023
deb6abb
refactor: NATSOperationBinding
Pakisan Mar 19, 2023
18a75f0
refactor: PulsarChannelBinding
Pakisan Mar 20, 2023
d0f3520
refactor: PulsarServerBinding
Pakisan Mar 20, 2023
751cb30
refactor: SolaceOperationBinding
Pakisan Mar 20, 2023
b7d8134
refactor: SolaceServerBinding
Pakisan Mar 20, 2023
1b4d995
refactor: WebSocketsChannelBinding
Pakisan Mar 20, 2023
cb00bda
Merge pull request #141 from asyncapi/refactor/bindings
Pakisan Mar 20, 2023
dd2f5b2
refactor: common Reference for 2.0.0, 2.6.0
Pakisan Mar 20, 2023
0d12c74
refactor: IBMMQChannelBinding
Pakisan Mar 20, 2023
26ee8ae
refactor: KafkaChannelBinding
Pakisan Mar 20, 2023
61bc569
refactor: fix Reference in JavaDoc
Pakisan Mar 20, 2023
db3c56b
refactor: remove unnecessary semicolon
Pakisan Mar 20, 2023
1d6fab7
refactor: unused imports
Pakisan Mar 20, 2023
10a41a3
refactor: Builder.Default
Pakisan Mar 20, 2023
c72fd01
build: Specified Maven Compiler Plugin version
Jun 20, 2023
9b68046
build: Specified source encoding
Jun 20, 2023
fa9124e
fix: Lombok compiler warning
Jun 20, 2023
30df53d
If schema items is a single json schema, it will be parsed as a Schem…
jaydeepk Jul 3, 2023
fa0386c
Merge branch 'asyncapi:master' into master
jaydeepk Jul 3, 2023
3188249
Merge branch 'asyncapi:master' into master
Pakisan Sep 17, 2023
a9fd8bb
Merge branch 'master' into develop
Pakisan Sep 17, 2023
0106cc4
Merge pull request #157 from Pakisan/develop
Pakisan Sep 17, 2023
cdb9fb6
Merge pull request #152 from ctasada/ctasada/fix-compile-warnings
Pakisan Sep 17, 2023
840f033
fix: Duplicated @Builder.Default after merge
Pakisan Sep 17, 2023
f01aca5
fix(SecurityScheme): @Builder will ignore the initializing expression…
Pakisan Sep 17, 2023
e5bf13c
fix(OAuthFlow): @Builder will ignore the initializing expression enti…
Pakisan Sep 17, 2023
5557f0b
fix(IBMMQMessageBinding): @Builder will ignore the initializing expre…
Pakisan Sep 17, 2023
f2b99db
fix(GooglePubSubChannelBinding): @Builder will ignore the initializin…
Pakisan Sep 17, 2023
cbceb46
feat(3.0.0): AsyncAPI
Pakisan Sep 24, 2023
6700e20
feat(3.0.0): Contact
Pakisan Sep 24, 2023
7c25d5b
feat(3.0.0): Licence
Pakisan Sep 24, 2023
faaed80
feat(3.0.0): ExternalDocumentation
Pakisan Sep 24, 2023
ec89194
feat(3.0.0): Tag
Pakisan Sep 24, 2023
cb01541
feat(3.0.0): Info
Pakisan Sep 24, 2023
e4fa43d
feat(3.0.0): ExternalDocumentation tests
Pakisan Sep 24, 2023
b44f5f0
feat(3.0.0): Tag tests
Pakisan Sep 24, 2023
e74a2d0
feat(3.0.0): Reference tests
Pakisan Sep 26, 2023
9e9cf96
feat(3.0.0): Contact tests
Pakisan Sep 26, 2023
12f812e
feat(3.0.0): License tests
Pakisan Sep 26, 2023
e765347
feat(3.0.0): Info tests
Pakisan Sep 26, 2023
685afec
feat(3.0.0): ServerVariable
Pakisan Sep 27, 2023
ca00f7c
feat(3.0.0): ApiKeySecurityScheme
Pakisan Sep 27, 2023
6accd4e
feat(3.0.0): OpenIdConnectSecurityScheme
Pakisan Sep 27, 2023
21a9077
feat(3.0.0): userPassword security scheme
Pakisan Sep 27, 2023
72dec6b
feat(3.0.0): X509 security scheme
Pakisan Sep 27, 2023
a333ee2
feat(3.0.0): symmetricEncryption security scheme
Pakisan Sep 27, 2023
2fe1728
feat(3.0.0): asymmetricEncryption security scheme
Pakisan Sep 27, 2023
e88711d
feat(3.0.0): HttpApiKeySecurityScheme
Pakisan Sep 27, 2023
6d7c110
feat(3.0.0): HttpSecurityScheme
Pakisan Sep 27, 2023
f1759fc
feat(3.0.0): OAuth2SecurityScheme
Pakisan Sep 27, 2023
1db0532
feat(3.0.0): plain security scheme
Pakisan Sep 27, 2023
5a0182d
feat(3.0.0): scramSha256 security scheme
Pakisan Sep 27, 2023
47c6ca6
feat(3.0.0): scramSha512 security scheme
Pakisan Sep 27, 2023
63e5012
feat(3.0.0): gssapi security scheme
Pakisan Sep 27, 2023
9624430
feat(3.0.0): ServerBinding
Pakisan Sep 27, 2023
a9f5b25
feat(3.0.0): Server
Pakisan Sep 27, 2023
250e413
feat(3.0.0): Channel parameter
Pakisan Sep 28, 2023
1d2d6d2
feat(3.0.0): Schema
Pakisan Sep 28, 2023
bbcbf4b
feat(3.0.0): Schema
Pakisan Sep 28, 2023
deddbd7
feat(3.0.0): Schema types
Pakisan Sep 28, 2023
16a05c9
feat(3.0.0): Multi Format Schema
Pakisan Sep 28, 2023
732e555
feat(3.0.0): CorrelationId
Pakisan Sep 28, 2023
1fcb1c5
feat(3.0.0): MessageExample
Pakisan Sep 28, 2023
6a2f987
feat(3.0.0): MessageBinding
Pakisan Sep 28, 2023
67ef603
feat(3.0.0): MessageTrait
Pakisan Oct 1, 2023
cde8684
feat(3.0.0): Message
Pakisan Oct 1, 2023
d904d03
fix(3.0.0): SchemasAdditionalPropertiesDeserializer fix schema version
Pakisan Oct 1, 2023
ffb19a3
feat(3.0.0): ChannelBinding
Pakisan Oct 1, 2023
977d04e
feat(3.0.0): Channel
Pakisan Oct 2, 2023
879341c
feat(3.0.0): OperationBinding
Pakisan Oct 2, 2023
45d44b6
feat(3.0.0): OperationReplyAddress
Pakisan Oct 3, 2023
2f89ae6
feat(3.0.0): OperationReply
Pakisan Oct 3, 2023
5445d18
feat(3.0.0): OperationTrait
Pakisan Oct 3, 2023
0bb710e
feat(3.0.0): OperationTrait @Nullable
Pakisan Oct 3, 2023
e9e72a4
feat(3.0.0): Operation
Pakisan Oct 3, 2023
1362ab5
feat(3.0.0): Components
Pakisan Oct 4, 2023
29ecb19
feat(3.0.0): AsyncAPI test
Pakisan Oct 4, 2023
898d915
feat(3.0.0): refactor tests
Pakisan Oct 5, 2023
bd0b8e9
refactor(tests): new location for security_scheme test resources
Pakisan Oct 5, 2023
2425b60
refactor(tests): new location for binding test resources
Pakisan Oct 5, 2023
944f338
refactor(tests): new location for 2.0.0 test resources
Pakisan Oct 5, 2023
d61c3f9
refactor(tests): new location for 2.6.0 test resources
Pakisan Oct 5, 2023
6aa40a4
build: 1.0.0-EAP-3-SNAPSHOT
Pakisan Oct 5, 2023
c9c5989
Merge pull request #10 from Pakisan/feat/3.0.0-preview
Pakisan Oct 5, 2023
b7755bd
build: 1.0.0-EAP-3-SNAPSHOT
Pakisan Oct 5, 2023
9d206fb
Merge remote-tracking branch 'fork/1.0.0-EAP-3-SNAPSHOT' into 1.0.0-E…
Pakisan Oct 5, 2023
d0030a1
If schema items is an array of schemas, it will be parsed as a list o…
jaydeepk Oct 12, 2023
43eb521
Merge branch 'master' into 1.0.0-EAP-3-SNAPSHOT
jaydeepk Oct 13, 2023
4e9275c
Moved the array test json files from the v3 folder to v2/2.6.0 folder…
jaydeepk Oct 13, 2023
60ffecf
Implemented parsing of messages with array payloads (into schema obje…
jaydeepk Oct 13, 2023
5f12b19
Merge pull request #159 from znsio/1.0.0-EAP-3-SNAPSHOT
Pakisan Oct 14, 2023
9bd4dcf
fix(javadoc): MessageExample
Pakisan Jan 17, 2024
fb11aaf
docs: change SDK env command
Pakisan Jan 30, 2024
fd3fdc9
docs: install locally without GPG signing
Pakisan Jan 30, 2024
65c60dc
docs(3.0.0): update AsyncAPI JavaDocs
Pakisan Jan 31, 2024
5a2fe8b
docs(3.0.0): update ExtendableObject JavaDocs
Pakisan Jan 31, 2024
81edf5f
docs(3.0.0): update Info JavaDocs
Pakisan Jan 31, 2024
3ae4c05
docs(3.0.0): update Contact JavaDocs
Pakisan Jan 31, 2024
ca7edef
docs(3.0.0): update License JavaDocs
Pakisan Jan 31, 2024
690abbe
docs(3.0.0): update Tag JavaDocs
Pakisan Jan 31, 2024
8c64c3a
docs(3.0.0): update Reference JavaDocs
Pakisan Jan 31, 2024
ef873e1
docs(3.0.0): update ExternalDocumentation JavaDocs
Pakisan Jan 31, 2024
c3f2bc4
docs(3.0.0): update Server JavaDocs
Pakisan Jan 31, 2024
f3b58f2
docs(3.0.0): update ServerVariable JavaDocs
Pakisan Jan 31, 2024
664d2c6
docs(3.0.0): update SecurityScheme JavaDocs
Pakisan Jan 31, 2024
3fbd254
docs(3.0.0): update ServerBinding JavaDocs
Pakisan Jan 31, 2024
613a6f9
docs(3.0.0): update Channel JavaDocs
Pakisan Jan 31, 2024
dc21f4b
docs(3.0.0): update Parameter JavaDocs
Pakisan Feb 1, 2024
b99586a
docs(3.0.0): update ChannelBinding JavaDocs
Pakisan Feb 1, 2024
34bbb6c
feat(3.0.0): update Message and MessageTrait JavaDocs and delete mess…
Pakisan Feb 1, 2024
cd4e7f9
docs(3.0.0): update MultiFormatSchema JavaDocs
Pakisan Feb 1, 2024
1259197
docs(3.0.0): update CorrelationId JavaDocs
Pakisan Feb 1, 2024
451d608
docs(3.0.0): update MessageExample JavaDocs
Pakisan Feb 1, 2024
f78e5d5
docs(3.0.0): update MessageExample and MessageTrait JavaDocs
Pakisan Feb 1, 2024
81cbfaf
docs(3.0.0): update Operation JavaDocs
Pakisan Feb 2, 2024
f8b235a
docs(3.0.0): update OperationAction JavaDocs
Pakisan Feb 2, 2024
9933391
docs(3.0.0): update OperationBinding JavaDocs
Pakisan Feb 2, 2024
e357786
docs(3.0.0): update OperationReplyAddress JavaDocs
Pakisan Feb 2, 2024
dcc87b0
docs(3.0.0): update OperationTrait JavaDocs
Pakisan Feb 2, 2024
303f1ad
docs(3.0.0): update OperationReply JavaDocs
Pakisan Feb 3, 2024
3549c89
docs(3.0.0): update Components JavaDocs
Pakisan Feb 3, 2024
244e259
feat(3.0.0): change type of Schema.multipleOf from Integer to Number
Pakisan Feb 3, 2024
3d11134
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 3, 2024
11a0929
docs(3.0.0): update OpenIdConnectSecurityScheme JavaDocs
Pakisan Feb 4, 2024
223f216
docs(3.0.0): update ApiKeySecurityScheme JavaDocs
Pakisan Feb 4, 2024
4d3dbce
docs(3.0.0): update HttpSecurityScheme JavaDocs
Pakisan Feb 4, 2024
f23225c
docs(3.0.0): update HttpApiKeySecurityScheme JavaDocs
Pakisan Feb 4, 2024
68d9166
docs(3.0.0): update OAuth2SecurityScheme JavaDocs
Pakisan Feb 5, 2024
429b9ea
docs(3.0.0): update OAuthFlows JavaDocs
Pakisan Feb 5, 2024
6bb2527
feat(3.0.0): OauthFlow rename scopes to availableScopes and update Ja…
Pakisan Feb 5, 2024
3c163a7
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 5, 2024
9592cb3
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 5, 2024
1ae87d5
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 5, 2024
087666f
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
020771e
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
4eee5e0
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
8f99561
docs: update asyncapi-core in README.md
Pakisan Feb 6, 2024
ffa1396
docs: known open specifications to check compatibility with
Pakisan Feb 6, 2024
a2b9838
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
e891b99
docs: mark simple-asyncapi.yml as tested
Pakisan Feb 6, 2024
e9e0824
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
31f15fe
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
3d74156
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
64af94e
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
5848483
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 6, 2024
c2feea5
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 7, 2024
67b9245
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 10, 2024
4570c95
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 10, 2024
7b29494
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 10, 2024
e8b6f14
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 10, 2024
228fdeb
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 10, 2024
d31f285
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 10, 2024
e836aac
test(3.0.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 14, 2024
32dd46d
fix(3.0.0): ExtendableObject update property name pattern
Pakisan Feb 15, 2024
6529f00
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 22, 2024
4c0dbab
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 22, 2024
a139f29
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 24, 2024
c6f769e
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 25, 2024
143ea24
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 25, 2024
67cb954
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 25, 2024
350b9f7
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 25, 2024
d2983e3
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 25, 2024
50f0609
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 26, 2024
6843714
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 26, 2024
77472da
test(2.6.0): check correctness of realisation by reading AsyncAPI exa…
Pakisan Feb 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(3.0.0): MessageExample
  • Loading branch information
Pakisan committed Sep 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 1fcb1c58260a82efec89b1e6677b5d0c3d21e9b2
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package com.asyncapi.v3._0_0.model.channel.message;

import com.asyncapi.v3.ExtendableObject;
import lombok.*;
import org.jetbrains.annotations.Nullable;

import java.util.Map;

/**
* Message Example Object represents an example of a {@link Message} Object and MUST contain either headers and/or payload fields.
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class MessageExample extends ExtendableObject {

/**
* The value of this field MUST validate against the {@link Message#getHeaders()} headers field.
*/
@Nullable
public Map<String, Object> headers;

/**
* The value of this field MUST validate against the Message {@link Message#getPayload()} field.
*/
@Nullable
public Map<String, Object> payload;

/**
* A machine-friendly name.
*/
@Nullable
private String name;

/**
* A short summary of what the example is about.
*/
@Nullable
private String summary;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.asyncapi.v3._0_0.model.channel.message

import com.asyncapi.v3.SerDeTest

class MessageExampleTest: SerDeTest<MessageExample>() {

override fun objectClass() = MessageExample::class.java

override fun baseObjectJson() = "/json/v3/3.0.0/model/channel/message/messageExample.json"

override fun extendedObjectJson() = "/json/v3/3.0.0/model/channel/message/messageExample - extended.json"

override fun wronglyExtendedObjectJson() = "/json/v3/3.0.0/model/channel/message/messageExample - wrongly extended.json"

override fun build(): MessageExample {
return MessageExample.builder()
.name("SimpleSignup")
.summary("A simple UserSignup example message")
.headers(mapOf(
Pair("correlationId", "my-correlation-id"),
Pair("applicationInstanceId", "myInstanceId")
))
.payload(mapOf(
Pair("user", mapOf(
Pair("someUserKey", "someUserValue")
)),
Pair("signup", mapOf(
Pair("someSignupKey", "someSignupValue")
))
))
.build()
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"headers" : {
"correlationId" : "my-correlation-id",
"applicationInstanceId" : "myInstanceId"
},
"payload" : {
"user" : {
"someUserKey" : "someUserValue"
},
"signup" : {
"someSignupKey" : "someSignupValue"
}
},
"name" : "SimpleSignup",
"summary" : "A simple UserSignup example message",
"x-number" : 0,
"x-string" : "",
"x-object" : {
"property" : { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "SimpleSignup",
"summary": "A simple UserSignup example message",
"headers": {
"correlationId": "my-correlation-id",
"applicationInstanceId": "myInstanceId"
},
"payload": {
"user": {
"someUserKey": "someUserValue"
},
"signup": {
"someSignupKey": "someSignupValue"
}
},
"x-number": 0,
"x-string": "",
"x-object": {
"property": {}
},
"ext-number": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "SimpleSignup",
"summary": "A simple UserSignup example message",
"headers": {
"correlationId": "my-correlation-id",
"applicationInstanceId": "myInstanceId"
},
"payload": {
"user": {
"someUserKey": "someUserValue"
},
"signup": {
"someSignupKey": "someSignupValue"
}
}
}