This is an automated email from the ASF dual-hosted git repository. jiriondrusek pushed a commit to branch camel-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 0b12ca299127d68ef609c7edc13dd97077f0b3bb Author: JiriOndrusek <ondrusek.j...@gmail.com> AuthorDate: Wed May 17 13:34:49 2023 +0200 Opeapi-java: fixed native tests - CQ4900 --- .../component/openapi/java/deployment/OpenApiJavaProcessor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java b/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java index 97e1d822ab..fc15ddc124 100644 --- a/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java +++ b/extensions/openapi-java/deployment/src/main/java/org/apache/camel/quarkus/component/openapi/java/deployment/OpenApiJavaProcessor.java @@ -89,6 +89,7 @@ class OpenApiJavaProcessor { @BuildStep void addDependencies(BuildProducer<IndexDependencyBuildItem> indexDependency) { indexDependency.produce(new IndexDependencyBuildItem("io.swagger.core.v3", "swagger-models")); + indexDependency.produce(new IndexDependencyBuildItem("io.swagger", "swagger-models")); } @BuildStep @@ -99,6 +100,11 @@ class OpenApiJavaProcessor { index.getAllKnownSubclasses(SCHEMA).stream().map(ClassInfo::toString) .forEach(name -> reflectiveClasses.produce(ReflectiveClassBuildItem.builder(name).methods().build())); + index.getKnownClasses().stream().filter(ci -> ci.name().packagePrefix().startsWith("io.swagger.models") || + ci.name().packagePrefix().startsWith("io.swagger.v3.oas.models")) + .map(ClassInfo::toString) + .forEach(name -> reflectiveClasses.produce(ReflectiveClassBuildItem.builder(name).methods().build())); + reflectiveClasses.produce(ReflectiveClassBuildItem.builder(Discriminator.class).build()); }