You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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.
The text was updated successfully, but these errors were encountered:
#299 attempted to take a stance on use of
field_behavior = REQUIRED
ononeof
fields, but it is wrong.oneof
andfield_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 theoneof
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.
The text was updated successfully, but these errors were encountered: