Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Nov 7, 2023
2 parents b7535ba + 041ba12 commit 9f2d3b2
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions buf/registry/module/v1beta1/branch.proto
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ message BranchRef {
(buf.validate.field).string.max_len = 255
];
// The name of the Module that contains this Branch.
string module = 2 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
];
string module = 2 [(buf.validate.field).string = {
min_len: 2,
max_len: 100
}];
// The name of the Branch.
string branch = 3 [
(buf.validate.field).required = true,
Expand Down
16 changes: 8 additions & 8 deletions buf/registry/module/v1beta1/module.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ message Module {
// The name of the Module.
//
// Unique within a given User or Organization.
string name = 4 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
];
string name = 4 [(buf.validate.field).string = {
min_len: 2,
max_len: 100
}];
// The id of the User or Organization that owns the Module.
string owner_id = 5 [
(buf.validate.field).required = true,
Expand Down Expand Up @@ -107,10 +107,10 @@ message ModuleRef {
(buf.validate.field).string.max_len = 255
];
// The name of the Module.
string module = 2 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
];
string module = 2 [(buf.validate.field).string = {
min_len: 2,
max_len: 100
}];
}

oneof value {
Expand Down
8 changes: 4 additions & 4 deletions buf/registry/module/v1beta1/module_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ message CreateModulesRequest {
// The User or Organization to create the Module under.
buf.registry.owner.v1beta1.OwnerRef owner_ref = 1 [(buf.validate.field).required = true];
// The name of the Module.
string name = 2 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
];
string name = 2 [(buf.validate.field).string = {
min_len: 2,
max_len: 100
}];
// The module's visibility.
ModuleVisibility visibility = 3 [
(buf.validate.field).required = true,
Expand Down
8 changes: 4 additions & 4 deletions buf/registry/module/v1beta1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ message ResourceRef {
(buf.validate.field).string.max_len = 255
];
// The name of the Module the contains or is the resource.
string module = 2 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
];
string module = 2 [(buf.validate.field).string = {
min_len: 2,
max_len: 100
}];
oneof child {
// The name of the Branch.
string branch_name = 3 [(buf.validate.field).string.max_len = 250];
Expand Down
8 changes: 4 additions & 4 deletions buf/registry/module/v1beta1/tag.proto
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ message TagRef {
(buf.validate.field).string.max_len = 255
];
// The name of the Module that contains the Tag, either a User or Organization.
string module = 2 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
];
string module = 2 [(buf.validate.field).string = {
min_len: 2,
max_len: 100
}];
// The Tag name.
string tag = 3 [
(buf.validate.field).required = true,
Expand Down
8 changes: 4 additions & 4 deletions buf/registry/module/v1beta1/vcs_commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ message VCSCommitRef {
(buf.validate.field).string.max_len = 255
];
// The name of the Module that contains the VCSCommit.
string module = 2 [
(buf.validate.field).required = true,
(buf.validate.field).string.max_len = 255
];
string module = 2 [(buf.validate.field).string = {
min_len: 2,
max_len: 100
}];
// The hash of the VCSCommit.
string hash = 3 [
(buf.validate.field).required = true,
Expand Down

0 comments on commit 9f2d3b2

Please sign in to comment.