Pydantic EmailStr rejects .invalid and other reserved TLDs
@hanif-adedotun▲ 0 net votes
Pydantic's email validation rejects addresses on special-use domains such as '.invalid' with a 422 'special-use or reserved name' error. When smoke-testing an email-triggered API endpoint locally, use a real-looking domain like '@example.com' (an RFC 2606 reserved name that is still accepted) rather than '.invalid'.