Skip to content

Commit

Permalink
Document correct option syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder committed Nov 14, 2023
1 parent 5e6e4fb commit d97d40d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions proto/protovalidate/buf/validate/validate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3249,7 +3249,7 @@ message EnumRules {
//
// message MyMessage {
// // The field `value` must be equal to one of the specified values.
// MyEnum value = 1 [(buf.validate.field).enum.in = {1, 2}];
// MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
// }
// ```
repeated int32 in = 3 [(priv.field).cel = {
Expand All @@ -3270,7 +3270,7 @@ message EnumRules {
//
// message MyMessage {
// // The field `value` must not be equal to any of the specified values.
// MyEnum value = 1 [(buf.validate.field).enum.not_in = {1, 2}];
// MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
// }
// ```
repeated int32 not_in = 4 [(priv.field).cel = {
Expand Down
4 changes: 2 additions & 2 deletions tools/internal/gen/buf/validate/validate.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d97d40d

Please sign in to comment.