Skip to content

HyperwalletList<T>.getData() returns null for "List" endpoints if there were no entries in response #206

Description

@irina-turova

We are migrating to REST API v4 and, therefore, switching from library version 1.4.2 to 2.4.3.

With1.4.2 and REST API v3, the request to the "List users" endpoint returns HyperwalletList and its getData() property returns an empty list if no users were found.

Now, with 2.4.3 and REST API v4 in the same situation, getData() returns null. It's not expected for "List" endpoints

Does changing it to an empty list again make sense, or does the "empty list logic" break the new pagination mechanism?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions