Skip to content

Commit a417670

Browse files
committed
test(amqp): update asyncapi artifacts
Part of springwolfGH-366
1 parent 05fd33e commit a417670

File tree

2 files changed

+239
-67
lines changed

2 files changed

+239
-67
lines changed

springwolf-examples/springwolf-amqp-example/src/test/resources/asyncapi.json

+183
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@
2525
}
2626
},
2727
"channels": {
28+
"#": {
29+
"address": "#",
30+
"messages": {
31+
"io.github.springwolf.examples.amqp.dtos.ExamplePayloadDto": {
32+
"$ref": "#/components/messages/io.github.springwolf.examples.amqp.dtos.ExamplePayloadDto"
33+
},
34+
"io.github.springwolf.examples.amqp.dtos.GenericPayloadDto": {
35+
"$ref": "#/components/messages/io.github.springwolf.examples.amqp.dtos.GenericPayloadDto"
36+
}
37+
},
38+
"bindings": {
39+
"amqp": {
40+
"is": "routingKey",
41+
"exchange": {
42+
"name": "CRUD-topic-exchange-1",
43+
"type": "topic",
44+
"durable": true,
45+
"autoDelete": false,
46+
"vhost": "/"
47+
},
48+
"bindingVersion": "0.3.0"
49+
}
50+
}
51+
},
2852
"another-queue": {
2953
"address": "another-queue",
3054
"messages": {
@@ -119,6 +143,48 @@
119143
"bindingVersion": "0.3.0"
120144
}
121145
}
146+
},
147+
"queue-create": {
148+
"address": "queue-create",
149+
"messages": {
150+
"io.github.springwolf.examples.amqp.dtos.GenericPayloadDto": {
151+
"$ref": "#/components/messages/io.github.springwolf.examples.amqp.dtos.GenericPayloadDto"
152+
}
153+
},
154+
"bindings": {
155+
"amqp": {
156+
"is": "queue",
157+
"queue": {
158+
"name": "queue-create",
159+
"durable": true,
160+
"exclusive": false,
161+
"autoDelete": false,
162+
"vhost": "/"
163+
},
164+
"bindingVersion": "0.3.0"
165+
}
166+
}
167+
},
168+
"queue-delete": {
169+
"address": "queue-delete",
170+
"messages": {
171+
"io.github.springwolf.examples.amqp.dtos.GenericPayloadDto": {
172+
"$ref": "#/components/messages/io.github.springwolf.examples.amqp.dtos.GenericPayloadDto"
173+
}
174+
},
175+
"bindings": {
176+
"amqp": {
177+
"is": "queue",
178+
"queue": {
179+
"name": "queue-delete",
180+
"durable": true,
181+
"exclusive": false,
182+
"autoDelete": false,
183+
"vhost": "/"
184+
},
185+
"bindingVersion": "0.3.0"
186+
}
187+
}
122188
}
123189
},
124190
"components": {
@@ -216,6 +282,25 @@
216282
"someEnum",
217283
"someString"
218284
]
285+
},
286+
"io.github.springwolf.examples.amqp.dtos.GenericPayloadDto": {
287+
"title": "GenericPayloadDto",
288+
"type": "object",
289+
"properties": {
290+
"genericValue": {
291+
"type": "object",
292+
"description": "Generic Payload field"
293+
}
294+
},
295+
"description": "Generic payload model",
296+
"examples": [
297+
{
298+
"genericValue": { }
299+
}
300+
],
301+
"required": [
302+
"genericValue"
303+
]
219304
}
220305
},
221306
"messages": {
@@ -255,10 +340,68 @@
255340
"bindingVersion": "0.3.0"
256341
}
257342
}
343+
},
344+
"io.github.springwolf.examples.amqp.dtos.GenericPayloadDto": {
345+
"headers": {
346+
"$ref": "#/components/schemas/SpringRabbitListenerDefaultHeaders"
347+
},
348+
"payload": {
349+
"schemaFormat": "application/vnd.aai.asyncapi+json;version=3.0.0",
350+
"schema": {
351+
"$ref": "#/components/schemas/io.github.springwolf.examples.amqp.dtos.GenericPayloadDto"
352+
}
353+
},
354+
"name": "io.github.springwolf.examples.amqp.dtos.GenericPayloadDto",
355+
"title": "GenericPayloadDto",
356+
"bindings": {
357+
"amqp": {
358+
"bindingVersion": "0.3.0"
359+
}
360+
}
258361
}
259362
}
260363
},
261364
"operations": {
365+
"#_receive_bindingsRead": {
366+
"action": "receive",
367+
"channel": {
368+
"$ref": "#/channels/#"
369+
},
370+
"bindings": {
371+
"amqp": {
372+
"expiration": 0,
373+
"cc": [
374+
"#"
375+
],
376+
"bindingVersion": "0.3.0"
377+
}
378+
},
379+
"messages": [
380+
{
381+
"$ref": "#/channels/#/messages/io.github.springwolf.examples.amqp.dtos.ExamplePayloadDto"
382+
}
383+
]
384+
},
385+
"#_receive_bindingsUpdate": {
386+
"action": "receive",
387+
"channel": {
388+
"$ref": "#/channels/#"
389+
},
390+
"bindings": {
391+
"amqp": {
392+
"expiration": 0,
393+
"cc": [
394+
"#"
395+
],
396+
"bindingVersion": "0.3.0"
397+
}
398+
},
399+
"messages": [
400+
{
401+
"$ref": "#/channels/#/messages/io.github.springwolf.examples.amqp.dtos.GenericPayloadDto"
402+
}
403+
]
404+
},
262405
"another-queue_receive_receiveAnotherPayload": {
263406
"action": "receive",
264407
"channel": {
@@ -366,6 +509,46 @@
366509
"$ref": "#/channels/multi-payload-queue/messages/io.github.springwolf.examples.amqp.dtos.ExamplePayloadDto"
367510
}
368511
]
512+
},
513+
"queue-create_receive_queuesToDeclareCreate": {
514+
"action": "receive",
515+
"channel": {
516+
"$ref": "#/channels/queue-create"
517+
},
518+
"bindings": {
519+
"amqp": {
520+
"expiration": 0,
521+
"cc": [
522+
"queue-create"
523+
],
524+
"bindingVersion": "0.3.0"
525+
}
526+
},
527+
"messages": [
528+
{
529+
"$ref": "#/channels/queue-create/messages/io.github.springwolf.examples.amqp.dtos.GenericPayloadDto"
530+
}
531+
]
532+
},
533+
"queue-delete_receive_queuesToDeclareDelete": {
534+
"action": "receive",
535+
"channel": {
536+
"$ref": "#/channels/queue-delete"
537+
},
538+
"bindings": {
539+
"amqp": {
540+
"expiration": 0,
541+
"cc": [
542+
"queue-delete"
543+
],
544+
"bindingVersion": "0.3.0"
545+
}
546+
},
547+
"messages": [
548+
{
549+
"$ref": "#/channels/queue-delete/messages/io.github.springwolf.examples.amqp.dtos.GenericPayloadDto"
550+
}
551+
]
369552
}
370553
}
371554
}

0 commit comments

Comments
 (0)