From cafdea1438f1ccfc68cbf2ba4fdd19369fe8b8ca Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Tue, 2 Apr 2024 11:15:42 +0200 Subject: [PATCH] SmallRye OpenAPI: add missing @Inject annotation This makes sure the code works in CDI strict mode as well. --- .../smallrye/openapi/runtime/OpenApiDocumentService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java index a1e10548d3fac..a46ec13af14ca 100644 --- a/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java +++ b/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiDocumentService.java @@ -8,6 +8,7 @@ import jakarta.enterprise.context.ApplicationScoped; import jakarta.enterprise.event.Observes; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.Config; import org.eclipse.microprofile.openapi.OASFilter; @@ -36,6 +37,7 @@ public class OpenApiDocumentService implements OpenApiDocumentHolder { private final OpenApiDocumentHolder documentHolder; private final String previousOpenApiServersSystemPropertyValue; + @Inject public OpenApiDocumentService(OASFilter autoSecurityFilter, OpenApiRecorder.UserDefinedRuntimeFilters userDefinedRuntimeFilters, Config config) { String servers = config.getOptionalValue("quarkus.smallrye-openapi.servers", String.class).orElse(null);