-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bug V1Bug related to Pydantic V1.XBug related to Pydantic V1.Xhelp wantedPull Request welcomePull Request welcome
Description
Bug
EmailStr validate-method performs lower() on whole string including local part, violating RFC 5321 by not conforming to
The local-part of a mailbox MUST BE treated as case sensitive.
https://tools.ietf.org/rfc/rfc5321.txt
- OS: Any
- Python version
import sys; print(sys.version): Any - Pydantic version
import pydantic; print(pydantic.VERSION): 0.32.2
Where possible please include a self contained code snippet describing your bug:
import pydantic
assert pydantic.EmailStr.validate('AbC@example.com') == 'AbC@example.com'Metadata
Metadata
Assignees
Labels
bug V1Bug related to Pydantic V1.XBug related to Pydantic V1.Xhelp wantedPull Request welcomePull Request welcome