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
encoding/protobuf: support field_behavior "required" option
See https://google.aip.dev/203. Currently, there is support for the
option `(cue.opt).required`. This is fine, but requires importing the
`cue.proto`, and exposes cue to the public facing API.
With this approach, the existing field behavior mechanism can be used,
which is the standard way to declare a required field in proto, like:
RecognitionAudio audio = 2 [(google.api.field_behavior) = REQUIRED];
Closes#2622 as merged as of commit 6974630.
Signed-off-by: John Howard <[email protected]>
Change-Id: Ia8079a8b148c9abe9b6fe26d090c86cb4489359a
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172314
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Paul Jolly <[email protected]>
0 commit comments