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

Remove deprecated options #297

Merged
merged 9 commits into from
Jan 28, 2025
Merged

Remove deprecated options #297

merged 9 commits into from
Jan 28, 2025

Conversation

jchadwick-buf
Copy link
Member

@jchadwick-buf jchadwick-buf 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:

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

@jchadwick-buf jchadwick-buf requested a review from rodaine January 27, 2025 23:59
@@ -27,7 +27,7 @@ message SubmitFeedbackRequest {
string email = 2 [
// `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
Member 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!

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.

3 participants