Closed woodruffw closed 10 months ago
Duplicate of #332
Correct me if I'm wrong, but I don't believe these are duplicates: the linked issue says that the types aren't supported, while they do appear supported but have buggy behavior in the dictionary/JSON conversion cases.
The follow-up comment on the linked issue is also about a codegen miscompilation, which is not the observed behavior here.
We need to have special behaviour for the classes for which there is currently none, this is something else that requires special behaviour, the follow up comment doesn't necessarily mean that it's the same problem as the original issue
Okay, thanks for clarifying!
Summary
protobuf.Struct
appears to not load correctly withfrom_dict(...)
, which also affectsfrom_json(...)
Reproduction Steps
I originally saw this with a more complex message, however I've minified it down to a single API call.
Using
betterproto==2.0.0b6
:Expected Results
I expect a
Struct
instance populated from the dictionary:Actual Results
I receive an empty
Struct
instance:System Information
Checklist
pip install -U --pre betterproto
, if possible.