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

Missing default values in JSON output? #91

Closed
mtsgrd opened this issue Jan 19, 2016 · 1 comment
Closed

Missing default values in JSON output? #91

mtsgrd opened this issue Jan 19, 2016 · 1 comment

Comments

@mtsgrd
Copy link

mtsgrd commented Jan 19, 2016

Is this intentional, or would it perhaps make more sense if default values were added to the output JSON?

@yugui
Copy link
Member

yugui commented Jan 19, 2016

It is a kind of intentional because proto3 does not distinguish default values and missing values.
But I know that this behavior sometimes causes problems in client side.

It will be fixed if you use jsonpb marshaller as discussed in #79.

@yugui yugui closed this as completed Jan 19, 2016
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

No branches or pull requests

2 participants