Skip to content

Commit

Permalink
Add IGNORE_IF_UNPOPULATED to start_commit_id (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder authored Mar 4, 2024
1 parent 3e01648 commit 143da1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion buf/registry/module/v1/label_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ message ListLabelHistoryRequest {
// The Commit id to start from.
//
// It is an error to provide a Commit id that doesn't exist on the Label.
string start_commit_id = 7 [(buf.validate.field).string.uuid = true];
string start_commit_id = 7 [
(buf.validate.field).string.uuid = true,
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}

message ListLabelHistoryResponse {
Expand Down
5 changes: 4 additions & 1 deletion buf/registry/module/v1beta1/label_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ message ListLabelHistoryRequest {
// The Commit id to start from.
//
// It is an error to provide a Commit id that doesn't exist on the Label.
string start_commit_id = 7 [(buf.validate.field).string.uuid = true];
string start_commit_id = 7 [
(buf.validate.field).string.uuid = true,
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}

message ListLabelHistoryResponse {
Expand Down

0 comments on commit 143da1a

Please sign in to comment.