Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jan 27, 2025

Removes deprecated fields in validate.proto, removes mention of them from relevant documentation, and replaces usages in the conformance suite with the proper up-to-date options.

This is a breaking change.

Runtime PRs:

@ghost ghost requested review from rodaine and timostamm January 27, 2025 23:47
@github-actions
Copy link

github-actions bot commented Jan 27, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed⏩ skippedJan 28, 2025, 1:23 PM

@ghost ghost requested a review from rodaine January 27, 2025 23:59
// `ignore_empty` skips validation on a field if it's empty.
// The email will be not validated if it's empty.
(buf.validate.field).ignore_empty = true,
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above says:

// `ignore_empty` skips validation on a field if it's empty.
// The email will be not validated if it's empty.

Can we update to

// `IGNORE_IF_UNPOPULATED` skips validation on a field if it's unpopulated.
// The email will be not validated if it's the empty string.

?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course. Thanks!

@ghost ghost merged commit 79e5a7d into main Jan 28, 2025
9 checks passed
@ghost ghost deleted the jchadwick/remove-deprecated branch January 28, 2025 22:06
ghost pushed a commit to bufbuild/protovalidate-go that referenced this pull request Jan 31, 2025
ghost pushed a commit to bufbuild/protovalidate-python that referenced this pull request Feb 7, 2025
ghost pushed a commit to bufbuild/protovalidate-cc that referenced this pull request Feb 7, 2025
ghost pushed a commit to bufbuild/protovalidate-java that referenced this pull request Feb 12, 2025
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants