Skip to content

Commit

Permalink
Merge branch 'main' into pkw/relax-v1-buf-yaml-required
Browse files Browse the repository at this point in the history
  • Loading branch information
pkwarren committed Feb 27, 2024
2 parents f5109e7 + 6c23fe6 commit 35f527a
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ deps:
- remote: buf.build
owner: bufbuild
repository: protovalidate
commit: e097f827e65240ac9fd4b1158849a8fc
digest: shake256:f19252436fd9ded945631e2ffaaed28247a92c9015ccf55ae99db9fb3d9600c4fdb00fd2d3bd7701026ec2fd4715c5129e6ae517c25a59ba690020cfe80bf8ad
commit: f05a6f4403ce4327bae4f50f281c3ed0
digest: shake256:668a0661b8df44d41839194896329330965fc215f3d2f88057fd60eeb759c2daf6cc6edfdd13b2a653d49fe2896ebedcb1a33c4c5b2dd10919f03ffb7fc52ae6
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ message UploadRequest {
string source_control_url = 5 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}
// The Contents of all references.
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ message Commit {
string source_control_url = 7 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/module.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ message Module {
string url = 9 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The name of the default Label of the Module.
//
Expand Down
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 @@ -130,7 +130,7 @@ message CreateModulesRequest {
string url = 5 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The name of the default Label of the Module.
//
Expand Down
11 changes: 7 additions & 4 deletions buf/registry/module/v1beta1/upload_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ message UploadRequest {
ModuleRef module_ref = 1 [(buf.validate.field).required = true];
// The commit_id of the Commit, if this is referencing a Commit that already exists.
//
// If the ModuleRef refers to a Module that has associated Content, this field should *not*
// be set, and setting it is an error.
string commit_id = 2 [(buf.validate.field).string.uuid = true];
// If the ModuleRef refers to a Module that has associated Content, this field should be empty,
// and setting a value is an error.
string commit_id = 2 [
(buf.validate.field).string.uuid = true,
(buf.validate.field).ignore_empty = true
];
}
// Content to upload for a given reference.
message Content {
Expand Down Expand Up @@ -74,7 +77,7 @@ message UploadRequest {
string source_control_url = 5 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}
// The Contents of all references.
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/owner/v1beta1/organization.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ message Organization {
string url = 6 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The verification status of the Organization.
OrganizationVerificationStatus verification_status = 7 [
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/owner/v1beta1/organization_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ message CreateOrganizationsRequest {
string url = 3 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The verification status of the Organization.
//
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/owner/v1beta1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ message User {
string url = 8 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The verification status of the User.
UserVerificationStatus verification_status = 9 [
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/owner/v1beta1/user_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ message CreateUsersRequest {
string url = 4 [
(buf.validate.field).string.uri = true,
(buf.validate.field).string.max_len = 255,
(buf.validate.field).ignore_empty = true
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
// The verification status of the User.
//
Expand Down

0 comments on commit 35f527a

Please sign in to comment.