Skip to content

Commit

Permalink
updated validation
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed Nov 7, 2024
1 parent ee0035b commit cbb529d
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 83 deletions.
163 changes: 81 additions & 82 deletions api/grpc/mpi/v1/files.pb.go

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

2 changes: 1 addition & 1 deletion api/grpc/mpi/v1/files.proto
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ enum SignatureAlgorithm {
message X509Name {
// Country name (C): Two-letter country code as per ISO 3166.
// Must be exactly 2 characters.
repeated string country = 1 [(buf.validate.field).repeated.items.string = {min_len: 2, max_len: 2}];
repeated string country = 1 [(buf.validate.field).string = {min_len: 2, max_len: 2}];

// Organization name (O): Name of the organization.
repeated string organization = 2 [(buf.validate.field).string.min_len = 1];
Expand Down

0 comments on commit cbb529d

Please sign in to comment.