Skip to content

Commit

Permalink
test: update asyncapi.json files based on current state in the branch
Browse files Browse the repository at this point in the history
Generate asyncapi.actual.json files by running in _springwolf_examples_ folder:

`../gradlew test --tests "**.ApiIntegrationTest" --continue`
  • Loading branch information
timonback committed Jan 13, 2024
1 parent e17bbde commit 0584091
Show file tree
Hide file tree
Showing 6 changed files with 411 additions and 641 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"channels": {
"another-queue": {
"messages": {
"another-queue_publish_receiveAnotherPayload.message": {
"io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto": {
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
Expand Down Expand Up @@ -69,7 +69,7 @@
},
"example-producer-channel-publisher": {
"messages": {
"example-producer-channel-publisher_subscribe.message": {
"io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto": {
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
Expand All @@ -92,7 +92,7 @@
},
"example-queue": {
"messages": {
"example-queue_publish_receiveExamplePayload.message": {
"io.github.stavshamir.springwolf.example.amqp.dtos.ExamplePayloadDto": {
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
Expand Down Expand Up @@ -134,7 +134,7 @@
},
"example-topic-routing-key": {
"messages": {
"example-topic-routing-key_publish_bindingsExample.message": {
"io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto": {
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
Expand Down Expand Up @@ -176,7 +176,7 @@
},
"multi-payload-queue": {
"messages": {
"multi-payload-queue_publish_bindingsBeanExample.message.0": {
"io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto": {
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
Expand All @@ -194,7 +194,7 @@
}
}
},
"multi-payload-queue_publish_bindingsBeanExample.message.1": {
"io.github.stavshamir.springwolf.example.amqp.dtos.ExamplePayloadDto": {
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
Expand Down Expand Up @@ -307,13 +307,9 @@
},
"operations": {
"another-queue_publish_receiveAnotherPayload": {
"action": "receive",
"channel": {
"$ref": "#/channels/another-queue"
},
"description": "Auto-generated description",
"bindings": {
"amqp": {
"expiration": 0,
"cc": [
"another-queue"
],
Expand All @@ -322,22 +318,20 @@
},
"messages": [
{
"$ref": "#/channels/another-queue/messages/another-queue_publish_receiveAnotherPayload.message"
"$ref": "#/components/messages/io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto"
}
]
},
"example-producer-channel-publisher_subscribe": {
"example-producer-channel-publisher": {
"action": "send",
"channel": {
"$ref": "#/channels/example-producer-channel-publisher"
},
"title": "example-producer-channel-publisher_subscribe",
"description": "Custom, optional description defined in the AsyncPublisher annotation",
"bindings": {
"amqp": {
"expiration": 0,
"cc": [],
"cc": [ ],
"priority": 0,
"deliveryMode": 1,
"deliveryMode": 0,
"mandatory": false,
"timestamp": false,
"ack": false,
Expand All @@ -346,18 +340,14 @@
},
"messages": [
{
"$ref": "#/channels/example-producer-channel-publisher/messages/example-producer-channel-publisher_subscribe.message"
"$ref": "#/components/messages/io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto"
}
]
},
"example-queue_publish_receiveExamplePayload": {
"action": "receive",
"channel": {
"$ref": "#/channels/example-queue"
},
"description": "Auto-generated description",
"bindings": {
"amqp": {
"expiration": 0,
"cc": [
"example-queue"
],
Expand All @@ -366,18 +356,14 @@
},
"messages": [
{
"$ref": "#/channels/example-queue/messages/example-queue_publish_receiveExamplePayload.message"
"$ref": "#/components/messages/io.github.stavshamir.springwolf.example.amqp.dtos.ExamplePayloadDto"
}
]
},
"example-topic-routing-key_publish_bindingsExample": {
"action": "receive",
"channel": {
"$ref": "#/channels/example-topic-routing-key"
},
"description": "Auto-generated description",
"bindings": {
"amqp": {
"expiration": 0,
"cc": [
"example-topic-routing-key"
],
Expand All @@ -386,18 +372,14 @@
},
"messages": [
{
"$ref": "#/channels/example-topic-routing-key/messages/example-topic-routing-key_publish_bindingsExample.message"
"$ref": "#/components/messages/io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto"
}
]
},
"multi-payload-queue_publish_bindingsBeanExample": {
"action": "receive",
"channel": {
"$ref": "#/channels/multi-payload-queue"
},
"description": "Auto-generated description",
"bindings": {
"amqp": {
"expiration": 0,
"cc": [
"example-topic-routing-key"
],
Expand All @@ -406,10 +388,10 @@
},
"messages": [
{
"$ref": "#/channels/multi-payload-queue/messages/multi-payload-queue_publish_bindingsBeanExample.message.0"
"$ref": "#/components/messages/io.github.stavshamir.springwolf.example.amqp.dtos.ExamplePayloadDto"
},
{
"$ref": "#/channels/multi-payload-queue/messages/multi-payload-queue_publish_bindingsBeanExample.message.1"
"$ref": "#/components/messages/io.github.stavshamir.springwolf.example.amqp.dtos.AnotherPayloadDto"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,129 +12,27 @@
"license": {
"name": "Apache License 2.0"
},
"tags": [],
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
"kafka": {
"host": "kafka:29092",
"host": "localhost:50025",
"protocol": "kafka"
}
},
"channels": {
"another-topic": {
"address": "another-topic",
"messages": {
"another-topic_publish_consumerMethod.message": {
"name": "io.github.stavshamir.springwolf.example.cloudstream.dtos.AnotherPayloadDto",
"title": "AnotherPayloadDto",
"payload": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/AnotherPayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"kafka": {}
}
},
"another-topic_subscribe_process.message": {
"name": "io.github.stavshamir.springwolf.example.cloudstream.dtos.AnotherPayloadDto",
"title": "AnotherPayloadDto",
"payload": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/AnotherPayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"kafka": {}
}
}
},
"bindings": {
"kafka": {}
"kafka": { }
}
},
"example-topic": {
"address": "example-topic",
"messages": {
"example-topic_publish_process.message": {
"name": "io.github.stavshamir.springwolf.example.cloudstream.dtos.ExamplePayloadDto",
"title": "ExamplePayloadDto",
"payload": {
"schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",
"schema": {
"$ref": "#/components/schemas/ExamplePayloadDto"
}
},
"headers": {
"$ref": "#/components/schemas/HeadersNotDocumented"
},
"bindings": {
"kafka": {}
}
}
},
"bindings": {
"kafka": {}
"kafka": { }
}
}
},
"operations": {
"another-topic_publish_consumerMethod": {
"action": "receive",
"channel": {
"$ref": "#/channels/another-topic"
},
"description": "Auto-generated description",
"bindings": {
"kafka": {}
},
"messages": [
{
"$ref": "#/channels/another-topic/messages/another-topic_publish_consumerMethod.message"
}
]
},
"another-topic_subscribe_process": {
"action": "send",
"channel": {
"$ref": "#/channels/another-topic"
},
"description": "Auto-generated description",
"bindings": {
"kafka": {}
},
"messages": [
{
"$ref": "#/channels/another-topic/messages/another-topic_subscribe_process.message"
}
]
},
"example-topic_publish_process": {
"action": "receive",
"channel": {
"$ref": "#/channels/example-topic"
},
"description": "Auto-generated description",
"bindings": {
"kafka": {}
},
"messages": [
{
"$ref": "#/channels/example-topic/messages/example-topic_publish_process.message"
}
]
}
},
"components": {
"schemas": {
"AnotherPayloadDto": {
Expand Down Expand Up @@ -200,9 +98,10 @@
},
"HeadersNotDocumented": {
"type": "object",
"properties": {},
"example": {}
"properties": { },
"example": { }
}
}
}
},
"operations": { }
}
Loading

0 comments on commit 0584091

Please sign in to comment.