Skip to content

Only include nulls in serialization when processing API responses #20

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

Merged
merged 2 commits into from
Mar 25, 2019

Conversation

lpatino10
Copy link
Contributor

In this earlier PR, I changed the main GSON instance to always serialize with null values. When testing with the new core, I realized that some API endpoints don't like being sent null values. Originally the change was only made with service responses in mind, so I've tweaked the core logic accordingly. JSON content being sent to the APIs should now behave as before.

@lpatino10 lpatino10 requested a review from padamstx March 25, 2019 15:45
@lpatino10
Copy link
Contributor Author

I've also made this change on the v2 branch, so if this is approved, I can tag and release that as a fix for anyone using the 2.0.1 version.

padamstx
padamstx previously approved these changes Mar 25, 2019
@lpatino10 lpatino10 merged commit 727d028 into master Mar 25, 2019
@lpatino10 lpatino10 deleted the serialize-nulls-only-response branch March 25, 2019 21:32
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.

2 participants