-
Notifications
You must be signed in to change notification settings - Fork 37
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
Handle validation error message for zero value for certain rules as a special case #133
Conversation
}, | ||
(priv.field).cel = { | ||
id: "string.hostname_empty", | ||
message: "an empty value is not a valid hostname", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more a statement, it makes me ask the question "...ok, was my value empty?" I'd say something like "value was empty, and empty is not a valid X"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in 23bed22, which now reads "value is empty, which is not a valid X"
For some string/bytes rules, if the string/bytes value is empty, we show a slightly different validation error message indicating the value is empty.