Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix *_id fields to use uuid validator #12

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/module_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ message UpdateModulesRequest {
// The id of the release Branch of the Module.
//
// This Branch must already exist.
string release_branch_id = 7 [(buf.validate.field).string.max_len = 255];
string release_branch_id = 7 [(buf.validate.field).string.uuid = true];
// The name of the release Branch of the Module.
//
// This Branch must already exist.
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/tag.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ message Tag {
// The id of the Commit associated with the Tag.
string commit_id = 7 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
(buf.validate.field).string.uuid = true
];
// The Digest of the Commit associated with the Tag.
buf.registry.storage.v1beta1.Digest commit_digest = 8 [(buf.validate.field).required = true];
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/tag_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ message CreateTagsRequest {
// The id of the Commit associated with the Tag.
string commit_id = 3 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
(buf.validate.field).string.uuid = true
];
}
// The Tags to create.
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/vcs_commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ message VCSCommit {
// The id of the Commit associated with the VCSCommit.
string commit_id = 8 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
(buf.validate.field).string.uuid = true
];
// The Digest of the Commit associated with the VCSCommit.
buf.registry.storage.v1beta1.Digest commit_digest = 9 [(buf.validate.field).required = true];
Expand Down
Loading