Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-9625

Upgrade quarkus-openapi-generator to 1.3.8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              manstis@redhat.com Michael Anstis
              manstis@redhat.com Michael Anstis
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: