From 93d88255cb6362219e237096d184453a7d3c96cc Mon Sep 17 00:00:00 2001 From: Julian Figueroa Date: Fri, 23 Feb 2024 16:06:52 -0500 Subject: [PATCH] all dep commit ids must be unique --- buf/registry/module/v1beta1/upload_service.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buf/registry/module/v1beta1/upload_service.proto b/buf/registry/module/v1beta1/upload_service.proto index 8c35b81..100bed9 100644 --- a/buf/registry/module/v1beta1/upload_service.proto +++ b/buf/registry/module/v1beta1/upload_service.proto @@ -86,7 +86,10 @@ message UploadRequest { // // Commits should be unique by Module, that is no two dep_commit_ids should have the same Module but // different Commit IDs. - repeated string dep_commit_ids = 2 [(buf.validate.field).repeated.items.string.uuid = true]; + repeated string dep_commit_ids = 2 [ + (buf.validate.field).repeated.unique = true, + (buf.validate.field).repeated.items.string.uuid = true + ]; } message UploadResponse {