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

Added include_default_values parameter to to_dict function #12

Merged
merged 1 commit into from
Jan 31, 2020

Conversation

ulasozguler
Copy link
Contributor

If a field has the default value of its type (e.g. int32 -> 0), it is ignored when message is converted to dictionary. This PR adds an optional parameter to to_dict function for including these values in the generated dict.

@danielgtaylor danielgtaylor merged commit c78851b into danielgtaylor:master Jan 31, 2020
@danielgtaylor
Copy link
Owner

Thanks! 👍

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