From 9b2c10d95d0c32d2c443a51ca0ef52d241143f5a Mon Sep 17 00:00:00 2001 From: Timon Back Date: Sun, 8 Oct 2023 21:33:30 +0200 Subject: [PATCH] feat(generic-binding): Improve sqs example (overwrite existing binding) --- .../springwolf/example/sqs/producers/AnotherProducer.java | 2 +- .../springwolf-sqs-example/src/test/resources/asyncapi.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/springwolf-examples/springwolf-sqs-example/src/main/java/io/github/stavshamir/springwolf/example/sqs/producers/AnotherProducer.java b/springwolf-examples/springwolf-sqs-example/src/main/java/io/github/stavshamir/springwolf/example/sqs/producers/AnotherProducer.java index 8c241fd9e..51fe118fa 100644 --- a/springwolf-examples/springwolf-sqs-example/src/main/java/io/github/stavshamir/springwolf/example/sqs/producers/AnotherProducer.java +++ b/springwolf-examples/springwolf-sqs-example/src/main/java/io/github/stavshamir/springwolf/example/sqs/producers/AnotherProducer.java @@ -24,7 +24,7 @@ public class AnotherProducer { description = "Custom, optional description defined in the AsyncPublisher annotation")) @SqsAsyncOperationBinding @AsyncGenericOperationBinding( - type = "custom-sqs", + type = "sqs", fields = {"internal-field=customValue", "nested.key=nestedValue"}) public void sendMessage(AnotherPayloadDto msg) { template.send(QUEUE, msg); diff --git a/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json b/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json index 454acfcde..c341f0fcb 100644 --- a/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json +++ b/springwolf-examples/springwolf-sqs-example/src/test/resources/asyncapi.json @@ -26,13 +26,12 @@ "operationId": "another-queue_subscribe", "description": "Custom, optional description defined in the AsyncPublisher annotation", "bindings": { - "custom-sqs": { + "sqs": { "internal-field": "customValue", "nested": { "key": "nestedValue" } - }, - "sqs": { } + } }, "message": { "schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",