Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
irina-turova opened this issue Feb 13, 2024 · 0 comments

Comments

@irina-turova
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant