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

Input and Output schemas are not correctly referenced in Swagger UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.40.0.Final
    • 1.38.0.Final
    • None
    • None
    • False
    • None
    • False
    • ---
    • ---
    • 2023 Week 21-23 (from May 22)

      After KOGITO-9031, the input and output schema mapping based on the tags no longer works. The issue is that when the tag was created on the resource class, it was copied to all operations in that class. After KOGITO-9031 it is added afterwards to the root of the already generated OpeanAPI definition and not copied to operations, leaving operations with default tags, i.e. the name of the resource class.

      See the attached openapi definition files for reference. The endpoint is /expression POST or /expression/{id} PUT.

      Previously the endpoints had the tag expression mapping to the expression_input schema, but now they have Expression Resource tag, so mapping is clearly broken.

        1. openapi-before.txt
          9 kB
          Marian Macik
        2. openapi-now.txt
          8 kB
          Marian Macik

              ftirados Francisco Javier Tirado Sarti
              mmacik@redhat.com Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: