Skip to content

Commit

Permalink
buf format
Browse files Browse the repository at this point in the history
  • Loading branch information
jchadwick-buf committed Jan 27, 2025
1 parent 7764aea commit 99547b5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ message IgnoreEmptyProto3Map {

message IgnoreEmptyRepeatedItems {
repeated int32 val = 1 [(buf.validate.field).repeated.items = {
ignore: IGNORE_IF_UNPOPULATED,
ignore: IGNORE_IF_UNPOPULATED
int32: {gt: 0}
}];
}

message IgnoreEmptyMapPairs {
map<string, int32> val = 1 [
(buf.validate.field).map.keys = {
ignore: IGNORE_IF_UNPOPULATED,
ignore: IGNORE_IF_UNPOPULATED
string: {min_len: 3}
},
(buf.validate.field).map.values = {
ignore: IGNORE_IF_UNPOPULATED,
ignore: IGNORE_IF_UNPOPULATED
int32: {gt: 0}
}
];
Expand Down

0 comments on commit 99547b5

Please sign in to comment.