-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
False
-
None
-
False
-
---
-
---
-
-
There are various documented issues with (older versions) of org.openapitools:openapi-generator:5.4.0 used by io.quarkiverse.openapi.generator:quarkus-openapi-generator-deployment:1.2.1 relating to JSON Schema oneOf usage.
Specifically this runs into errors trying to codegen against JSON schemas:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.871 s [INFO] Finished at: 2023-07-24T12:52:39Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project serverless-workflow-project: Compilation failure: Compilation failure: [ERROR] /home/kogito/serverless-workflow-project/target/generated-sources/open-api-stream/org/kie/kogito/openapi/actionsopenapi/model/PublishGithub.java:[7,51] cannot find symbol [ERROR] symbol: class OneOfAnyTypeAnyType [ERROR] location: package org.kie.kogito.openapi.actionsopenapi.model [ERROR] /home/kogito/serverless-workflow-project/target/generated-sources/open-api-stream/org/kie/kogito/openapi/actionsopenapi/model/PublishGithub.java:[143,18] cannot find symbol [ERROR] symbol: class OneOfAnyTypeAnyType [ERROR] location: class org.kie.kogito.openapi.actionsopenapi.model.PublishGithub [ERROR] /home/kogito/serverless-workflow-project/target/generated-sources/open-api-stream/org/kie/kogito/openapi/actionsopenapi/model/PublishGithub.java:[729,17] cannot find symbol [ERROR] symbol: class OneOfAnyTypeAnyType [ERROR] location: class org.kie.kogito.openapi.actionsopenapi.model.PublishGithub ...
Upgrading io.quarkiverse.openapi.generator:quarkus-openapi-generator-deployment to the latest Quarkus 2.0 compatible version 1.2.1 uses the newer org.openapitools:openapi-generator:6.6.0 that seems to solve the above issue.
- blocks
-
KOGITO-9656 Check and remove workaround for oneOf schema generation
- Resolved