DEV Community

Discussion on: Building Serverless Applications With FastAPI and FaunaDB

Collapse
amal profile image
Amal Shaji
...
email: str = Field()
...
Enter fullscreen mode Exit fullscreen mode

can be replaced with

from pydantic import EmailStr

email: EmailStr = Field()
Enter fullscreen mode Exit fullscreen mode
Collapse
bkoiki950 profile image
Babatunde Koiki Author

Wow, thanks for pointing this out to me 🤗