From ed33e9c097a5c0d348b68f4ee6b711a9cb46a90c Mon Sep 17 00:00:00 2001 From: Nick Snyder Date: Fri, 16 Feb 2024 14:37:38 -0800 Subject: [PATCH] validation rule --- buf/registry/module/v1beta1/label_service.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buf/registry/module/v1beta1/label_service.proto b/buf/registry/module/v1beta1/label_service.proto index 8be4670..51e9650 100644 --- a/buf/registry/module/v1beta1/label_service.proto +++ b/buf/registry/module/v1beta1/label_service.proto @@ -110,7 +110,7 @@ message ListLabelsRequest { // Only return Labels that point to a Commit with one of these PolicyChecksStatus values. // // If not set, Labels that point to a Commit with any PolicyChecksStatus value are returned. - repeated PolicyChecksStatus policy_checks_statuses = 5; + repeated PolicyChecksStatus policy_checks_statuses = 5 [(buf.validate.field).repeated.items.enum.defined_only = true]; } message ListLabelsResponse {