diff --git a/testdata-generator-quarkus-rest-app/pom.xml b/testdata-generator-quarkus-rest-app/pom.xml index 7834484..eff4044 100644 --- a/testdata-generator-quarkus-rest-app/pom.xml +++ b/testdata-generator-quarkus-rest-app/pom.xml @@ -261,6 +261,10 @@ io.quarkus quarkus-smallrye-openapi + + io.quarkus + quarkus-smallrye-health + io.quarkus quarkus-container-image-jib diff --git a/testdata-generator-quarkus-rest-app/src/main/resources/application.yml b/testdata-generator-quarkus-rest-app/src/main/resources/application.yml index fd63932..fd455ae 100644 --- a/testdata-generator-quarkus-rest-app/src/main/resources/application.yml +++ b/testdata-generator-quarkus-rest-app/src/main/resources/application.yml @@ -26,7 +26,6 @@ quarkus: package: type: "uber-jar" - mp: openapi: filter: "io.openepcis.testdata.api.filter.SchemaExampleOASFilter" diff --git a/testdata-generator-rest-api/src/main/java/io/openepcis/testdata/api/filter/SchemaExampleOASFilter.java b/testdata-generator-rest-api/src/main/java/io/openepcis/testdata/api/filter/SchemaExampleOASFilter.java index 4ead104..bf96032 100644 --- a/testdata-generator-rest-api/src/main/java/io/openepcis/testdata/api/filter/SchemaExampleOASFilter.java +++ b/testdata-generator-rest-api/src/main/java/io/openepcis/testdata/api/filter/SchemaExampleOASFilter.java @@ -17,6 +17,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; +import io.openepcis.resources.oas.EPCISExampleOASFilter; import io.quarkus.runtime.annotations.RegisterForReflection; import java.io.IOException; import java.util.LinkedHashMap; @@ -32,12 +33,13 @@ @RegisterForReflection @Slf4j -public class SchemaExampleOASFilter implements OASFilter { +public class SchemaExampleOASFilter extends EPCISExampleOASFilter implements OASFilter { private final ObjectMapper objectMapper = new ObjectMapper(); @Override public void filterOpenAPI(OpenAPI openAPI) { + super.filterOpenAPI(openAPI); try { Components defaultComponents = OASFactory.createComponents(); if (openAPI.getComponents() == null) {