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

Add an option to omit values equal to defaults on serialization #161

Closed
Fatal1ty opened this issue Sep 7, 2023 · 0 comments · Fixed by #162
Closed

Add an option to omit values equal to defaults on serialization #161

Fatal1ty opened this issue Sep 7, 2023 · 0 comments · Fixed by #162
Assignees
Labels
enhancement New feature or request

Comments

@Fatal1ty
Copy link
Owner

Fatal1ty commented Sep 7, 2023

Is your feature request related to a problem? Please describe.
There are cases when it's preferable to omit default values on serialization. It can potentially reduce the storage space used or the amount of data transferred.

Describe the solution you'd like
Add new omit_default config and dialect option.

Describe alternatives you've considered
We can remove values equal to defaults using post-serialize hook but it's not as efficient.

@Fatal1ty Fatal1ty self-assigned this Sep 7, 2023
@Fatal1ty Fatal1ty added the enhancement New feature or request label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant