Skip to content

Commit

Permalink
Change usage of ignore_empty to IGNORE_IF_UNPOPULATED (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev authored Feb 21, 2024
1 parent f00ff91 commit 6c23fe6
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 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 @@ -97,7 +97,7 @@ message UploadRequest {
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
];
}
// 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
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/upload_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ message UploadRequest {
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
];
}
// 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 6c23fe6

Please sign in to comment.