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

skip null/undefined fields when serializing #1133

Merged
merged 6 commits into from
Apr 5, 2024

Conversation

koros
Copy link
Contributor

@koros koros commented Apr 3, 2024

Fixes: #1079

  • Remove falsy evaluation to avoid situations where numbers like 0 or false are mistaken for null/undefined

andrueastman
andrueastman previously approved these changes Apr 4, 2024
@koros koros merged commit eed0a52 into main Apr 5, 2024
6 checks passed
@koros koros deleted the feature/skip-null-fields-when-serializing branch April 5, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Is it possible to skip undefined obj from json body? [Typescript]
2 participants