If I have a definition like so:
enum Status {
IN_PROGRESS = 1;
ERROR = 2;
}
message Foo {
message Bar {
optional Status status = 1;
}
optional Bar bar = 1;
}
And code like so:
foo = Foo()
foo.bar = Foo_Bar()
foo.bar.status = Status.IN_PROGRESS
print foo.bar.status
None is printed instead of 1. Things work ok if I move the status field from the inner Bar message to the outer Foo.