-
Notifications
You must be signed in to change notification settings - Fork 730
Open
Labels
aip: amendmentThis AIP should be amended to add something.This AIP should be amended to add something.
Description
#299 attempted to take a stance on use of field_behavior = REQUIRED on oneof fields, but it is wrong. oneof and field_behavior = REQUIRED/OPTIONAL answer different questions and impact different things. One is a serialization/wire format tool, the other is a documentation of service behavior.
That said, we still need a way to communicate service expectations of oneof fields. Unfortunately, protobuf does not have a means of annotating the oneof statement itself, leaving us with field or message level annotations, each with their own issues.
cc @toumorokoshi tracking our internal discussion from a few weeks ago.
FyiurAmron and Fleshgrinder
Metadata
Metadata
Assignees
Labels
aip: amendmentThis AIP should be amended to add something.This AIP should be amended to add something.