Skip to content

Commit

Permalink
Update stale comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jchadwick-buf committed Jan 28, 2025
1 parent cd82a26 commit 1d6530d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/option_field_ignore_empty.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ message SubmitFeedbackRequest {
string feedback = 1;
// email is the email.
string email = 2 [
// `ignore_empty` skips validation on a field if it's empty.
// The email will be not validated if it's empty.
// `IGNORE_IF_UNPOPULATED` skips validation on a field if it's unpopulated.
// The email will be not validated if it's the empty string.
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,
// `string.email` validates that a string field is a valid email.
(buf.validate.field).string.email = true
Expand Down

0 comments on commit 1d6530d

Please sign in to comment.