benhodgson/protobuf-to-dict — pull request #5 by 3kwa (2014-09-29 11:56:45+00:00)
Title: handling empty messages

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 the `required` field from the message which causes an error at serialization time.

The PR contains the tests and one way to fix the problem.