Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-11854

REST SDK array action request/responses are not List<X>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.0.0, 14.5.0
    • Fix Version/s: None
    • Component/s: REST SDK
    • Labels:
    • Rank:
      1|hzub6v:

      Description

      Bug description

      If you look at the schema for the PolicyResource's evaluate action, it returns an array of objects containing resource, actions, attributes and advices. However, the generated SDK PoliciesOperations#evaluate(EvaluateRequest) method returns a single EvaluateResponse object, which has those items itself. The method signature should instead be List<EvaluateResponse> evaluate(EvaluateRequest request). This issue would also affect any request schemas that are an array at the top level.

      How to reproduce the issue

      Look at the SDK class structures.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jamesphillpotts James Phillpotts
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: