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
We actually saw this issue, as well. It was very odd, as it only worked with the specific package from the unit tests. Once MsgWithOneof is pulled out of the package, it will not deserialize the json with a oneof field.
jsonpb is specified to accept either the .proto original name, or the camelCase name. In this case, that means the acceptable set should be {Salary,salary}. It does indeed sound like a bug.
In test_objects.proto I changed the field names to have a first letter as a capital.
This produces an error
So technically the fieldname isn't salary anymore, it is Salary, but this is what it marshals to and this is what the tags say it should be
The text was updated successfully, but these errors were encountered: