Skip to content

Commit

Permalink
Merge pull request #39827 from Ladicek/add-inject-annotation
Browse files Browse the repository at this point in the history
SmallRye OpenAPI: add missing @Inject annotation
  • Loading branch information
Ladicek authored Apr 2, 2024
2 parents eeea8ad + cafdea1 commit 2f687bb
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 2f687bb

Please sign in to comment.