Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-31728

[QE] [Playbook Dispatcher] [Critical] sources api generated code expects wrong response

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No

      The generated GetSourcesRhcConnectionWithResponse() function expects an array of RhcConnectionCollections structs.  This is wrong.  The code should just expect one RhcConnectionCollections struct.  This struct contains an array of RhcConnectionRead structs.

      I modified the generated code to do the right thing.

      We need to figure out if its really the code generator or if the openapi spec has an issue.  (A quick peek at the openapi spec thinks its fine).

      1. Verify the openapi spec
      2. Update the openapi generator
      3. Regenerate the sources api code and see if its still busted
        1. If it is still wrong, we should open a bug on the openapi generator project and try to get this fixed

            bschneid@redhat.com Brandon Schneider
            rhn-support-dehort Derek Horton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: