Skip to content

Commit

Permalink
Merge branch 'main' into osun/more-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversun9 authored Sep 18, 2023
2 parents 61979e9 + 6760bb5 commit 7d3be6d
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ message RepeatedExact {
message RepeatedUnique {
repeated string val = 1 [(buf.validate.field).repeated.unique = true];
}
message RepeatedMultipleUnique {
repeated string a = 1 [(buf.validate.field).repeated.unique = true];
repeated int32 b = 2 [(buf.validate.field).repeated.unique = true];
}
message RepeatedItemRule {
repeated float val = 1 [(buf.validate.field).repeated.items.float.gt = 0];
}
Expand Down
5 changes: 3 additions & 2 deletions proto/protovalidate/buf/validate/validate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3202,8 +3202,8 @@ message RepeatedRules {
//
//```proto
//message MyRepeated {
// // repeated value must contain unique items
// repeated string value = 1 [(buf.validate.field).repeated.unique = true];
// // repeated value must contain unique items
// repeated string value = 1 [(buf.validate.field).repeated.unique = true];
//}
//```
optional bool unique = 3 [(priv.field).cel = {
Expand All @@ -3226,6 +3226,7 @@ message RepeatedRules {
// }
// }];
//}
//```
optional FieldConstraints items = 4;
}

Expand Down
Loading

0 comments on commit 7d3be6d

Please sign in to comment.