From 923c003fe122558505e71200ce995a39c784ec7a Mon Sep 17 00:00:00 2001 From: sam0r040 <93372330+sam0r040@users.noreply.github.com> Date: Fri, 13 Oct 2023 18:06:34 +0200 Subject: [PATCH] fix(generic-binding): fix autoconfiguration (#405) * fix(generic-binding): fix autoconfiguration Co-authored-by: Timon Back * Update asyncapi.json * test(sqs): remove empty line in asyncapi.json --------- Co-authored-by: Timon Back Co-authored-by: Timon Back --- ...java => SpringwolfGenericBindingAutoConfiguration.java} | 2 +- ...gframework.boot.autoconfigure.AutoConfiguration.imports | 2 +- .../src/test/resources/asyncapi.json | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) rename springwolf-add-ons/springwolf-generic-binding/src/main/java/io/github/stavshamir/springwolf/addons/generic_binding/annotation/configuration/{SpringwolfGenericBindingConfiguration.java => SpringwolfGenericBindingAutoConfiguration.java} (92%) diff --git a/springwolf-add-ons/springwolf-generic-binding/src/main/java/io/github/stavshamir/springwolf/addons/generic_binding/annotation/configuration/SpringwolfGenericBindingConfiguration.java b/springwolf-add-ons/springwolf-generic-binding/src/main/java/io/github/stavshamir/springwolf/addons/generic_binding/annotation/configuration/SpringwolfGenericBindingAutoConfiguration.java similarity index 92% rename from springwolf-add-ons/springwolf-generic-binding/src/main/java/io/github/stavshamir/springwolf/addons/generic_binding/annotation/configuration/SpringwolfGenericBindingConfiguration.java rename to springwolf-add-ons/springwolf-generic-binding/src/main/java/io/github/stavshamir/springwolf/addons/generic_binding/annotation/configuration/SpringwolfGenericBindingAutoConfiguration.java index 43bf060a0..bf9a93ab1 100644 --- a/springwolf-add-ons/springwolf-generic-binding/src/main/java/io/github/stavshamir/springwolf/addons/generic_binding/annotation/configuration/SpringwolfGenericBindingConfiguration.java +++ b/springwolf-add-ons/springwolf-generic-binding/src/main/java/io/github/stavshamir/springwolf/addons/generic_binding/annotation/configuration/SpringwolfGenericBindingAutoConfiguration.java @@ -8,7 +8,7 @@ import org.springframework.core.annotation.Order; @Configuration -public class SpringwolfGenericBindingConfiguration { +public class SpringwolfGenericBindingAutoConfiguration { @Bean @Order(value = BindingProcessorPriority.GENERIC_BINDING) diff --git a/springwolf-add-ons/springwolf-generic-binding/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/springwolf-add-ons/springwolf-generic-binding/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index c076e2651..c201ab823 100644 --- a/springwolf-add-ons/springwolf-generic-binding/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/springwolf-add-ons/springwolf-generic-binding/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -1 +1 @@ -io.github.stavshamir.springwolf.addons.generic_binding.annotation.processor.AsyncGenericOperationBindingProcessor +io.github.stavshamir.springwolf.addons.generic_binding.annotation.configuration.SpringwolfGenericBindingAutoConfiguration 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 07ad8bd2f..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,7 +26,12 @@ "operationId": "another-queue_subscribe", "description": "Custom, optional description defined in the AsyncPublisher annotation", "bindings": { - "sqs": { } + "sqs": { + "internal-field": "customValue", + "nested": { + "key": "nestedValue" + } + } }, "message": { "schemaFormat": "application/vnd.oai.openapi+json;version=3.0.0",