From 143da1af03a465e44ad4202f7cf51d1e44600e95 Mon Sep 17 00:00:00 2001 From: Nick Snyder Date: Mon, 4 Mar 2024 13:42:01 -0500 Subject: [PATCH] Add IGNORE_IF_UNPOPULATED to start_commit_id (#82) --- buf/registry/module/v1/label_service.proto | 5 ++++- buf/registry/module/v1beta1/label_service.proto | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/buf/registry/module/v1/label_service.proto b/buf/registry/module/v1/label_service.proto index fd9a1b5..a1f8681 100644 --- a/buf/registry/module/v1/label_service.proto +++ b/buf/registry/module/v1/label_service.proto @@ -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 { diff --git a/buf/registry/module/v1beta1/label_service.proto b/buf/registry/module/v1beta1/label_service.proto index ff30e36..2295ae9 100644 --- a/buf/registry/module/v1beta1/label_service.proto +++ b/buf/registry/module/v1beta1/label_service.proto @@ -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 {