Open 3kwa opened 10 years ago
A message with a required field whose type is a message of all optional fields could be {'required': {}}
{'required': {}}
dict_to_protobuf ignores the {} and removes the required field from the message which causes an error at serialization time.
dict_to_protobuf
{}
required
The PR contains the tests and one way to fix the problem.
bump
@andrew-minted you may want to have a look at https://github.com/3kwa/protodict a friendly fork in which I merged this PR
yes, this can fix the problem
A message with a required field whose type is a message of all optional fields could be
{'required': {}}
dict_to_protobuf
ignores the{}
and removes therequired
field from the message which causes an error at serialization time.The PR contains the tests and one way to fix the problem.