Closed luangong closed 3 months ago
Thanks for catching that. I was retrofitting the enum examples throughout the docs to add *_UNSPECIFIED
values to those that didn't have them, and missed updating the text that went with it. I'm going to leave this issue open until the updated docs are published.
Updated docs are published. Thanks again for catching this!
Given the following
.proto
definition:The official documentation says that:
But the protobuf compiler generates Dart code like this:
which contains all four values, including
COLOR_UNSPECIFIED
.Related: https://github.com/google/protobuf.dart/issues/919