-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Need an option to prevent add ",omit_empty" for json label #682
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
Comments
Was not sure about how this aligned with the standards, so I looked it up:
https://developers.google.com/protocol-buffers/docs/proto3#json It appears to be a valid option to do. But maybe the option name could be narrowed to be clear that it is json-specific: |
The generation of the That being said, adding a command-line option to remove this is not the right solution for several reasons:
I'm going to close this in favor of #52, which is the closest issue to being able to support this. |
When the json is used to communicate with browser, all field with omit_empty will cause lots of missing for keys.
The text was updated successfully, but these errors were encountered: