Skip to content

Commit

Permalink
SmallRye OpenAPI: add missing @Inject annotation
Browse files Browse the repository at this point in the history
This makes sure the code works in CDI strict mode as well.
  • Loading branch information
Ladicek committed Apr 2, 2024
1 parent e00af30 commit cafdea1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit cafdea1

Please sign in to comment.