Skip to content

Commit

Permalink
include missing OpenAPI Examples from super class
Browse files Browse the repository at this point in the history
add smallrye health status plugin
  • Loading branch information
sboeckelmann committed May 7, 2024
1 parent 8886ad7 commit c5ebd59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions testdata-generator-quarkus-rest-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-openapi</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-health</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-container-image-jib</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ quarkus:
package:
type: "uber-jar"


mp:
openapi:
filter: "io.openepcis.testdata.api.filter.SchemaExampleOASFilter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit c5ebd59

Please sign in to comment.