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
StringConstraints: Bug #9381
Comments
The email validation process relies on the email_validator package. This validate_email function of the package returns an object with a normalized form of the email address, in which domain is in lowercase. Line 742 in b844ea7
|
It's StringConstraints issue after EmailStr validation it has to apply lower/upper case as required but strip_whitespace doesn't make any other parameters work in StringContraints. |
Another example that might be relevant
Result
|
Thanks for reporting this in a separate issue. I've added this to our upcoming milestone! |
see below, lowercase/uppercase is set to true and strip whitespaces is set to true. Interestingly, we see the second part of email is always lowercase. This is very strange behavior. Though, I can exclude strip_whitespace as EmailStr takes care of striping whitespaces.
I'm bit confused when to use and not to use
strip_whitespace
. Should we usestrip_whitespace
with others params?Originally posted by @SDAravind in #8577 (comment)
The text was updated successfully, but these errors were encountered: