Skip to content

Commit

Permalink
all dep commit ids must be unique
Browse files Browse the repository at this point in the history
  • Loading branch information
unmultimedio committed Feb 23, 2024
1 parent c559234 commit 93d8825
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buf/registry/module/v1beta1/upload_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 93d8825

Please sign in to comment.