You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very simple message as the one below. That message is compiled to json using pbjs. I try to set mode field to 0, encode and then decode the message. When the message is decoded mode field no longer have 0 value but it is set to null.
Hi,
I have a very simple message as the one below. That message is compiled to json using pbjs. I try to set mode field to 0, encode and then decode the message. When the message is decoded mode field no longer have 0 value but it is set to null.
Looking on the documentation for proto3, the default value for number should be decoded as 0 number:
https://developers.google.com/protocol-buffers/docs/proto3#default
Please let me know if I can provide more details about my problem.
Many thanks,
Krzysztof
The text was updated successfully, but these errors were encountered: