Skip to content

SK-2142 return None on empty error response #186

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

Open
wants to merge 4 commits into
base: release/25.6.2
Choose a base branch
from

Conversation

raushan-skyflow
Copy link
Collaborator

@raushan-skyflow raushan-skyflow commented Jun 26, 2025

This PR updates the error response to align with the recent changes introduced in Node SDK v2 & other server side SDK, where the errors key is set to null when no errors are present, instead of returning an empty array.

Why:

  • To maintain consistency of response formats across all server side SDKs.

Outcome:

  • It will return None in case of empty array response.
  • Improves SDK response with latest Node SDK V2 response structure incase of empty error array.

Test:

  • Locally & with unit test.

@raushan-skyflow raushan-skyflow force-pushed the raushan/SK-2142-return-none-on-empty-error-response branch from 3f33fb4 to 9ba4d96 Compare June 26, 2025 17:12
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

Successfully merging this pull request may close these issues.

1 participant