-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
How to set JSON options to emit fields with default values in proto3 #6035
Comments
We haven't implemented that option yet. Would you like to contribute a PR? Thanks! |
Any idea when this might be implemented. It seems proto2 doesn't have this issue. |
plus one |
While this is a reasonable request, the protobuf team will not be prioritizing this in the near future. If you send us a PR to add it, we would love to help get it merged! |
Well, this is great. Google's GTFS-RT specification requires field |
PHP
https://developers.google.cn/protocol-buffers/docs/proto3#json
how to set ?like:
EmitDefaults
ordefaults_json
Fields with default values are always omitted
The text was updated successfully, but these errors were encountered: