Constructing message from dictionary fails when message has nested Struct #424
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Usually, if a certain dictionary can be used to initialize a message, then the same dictionary can be used inside a bigger dictionary to initialize a field of a bigger message.
However this invariant fails for the Struct message when it's nested more than once:
Trying to work around the issue leads to incorrect values:
See how "fields" is duplicated. First as a
Struct.fields
, then as a string map key.The text was updated successfully, but these errors were encountered: