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
Unknown fields are only preserved in the binary encoding.
Setting DiscardUnknown tells protojson.Unmarshal to discard unknown fields (as the name says). If you don't set DiscardUnknown, protojson.Unmarshal will return an error if it encounters any field names it does not recognize.
What version of protobuf and what language are you using?
v1.5.4
What did you do?
What did you expect to see?
I expected the assertions to pass and there to be one unknown item.
What did you see instead?
The last assertion failed. The actual length is 0.
The text was updated successfully, but these errors were encountered: