Struct sub-fields cannot be JSON or dict marshaled #535
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.
Environment details
proto-plus==1.26.0
Steps to reproduce
There is no way to marshal just a subfield of a message into JSON or a dict. Here's an example
Details
The issue is that the
StructRule.to_python()
returns aMapComposite
instead of thegoogle.protobuf.struct_pb2.Struct
proto-plus-python/proto/marshal/rules/struct.py
Lines 123 to 125 in 205bc92
The text was updated successfully, but these errors were encountered: