DEV Community

Discussion on: FastAPI - The Good, the bad and the ugly.

Collapse
 
vitalik_28 profile image
Vitaliy Kucheryaviy

Hi ! good thoughts

About your last issue..
I'm working on the project django-ninja ( github.com/vitalik/django-ninja ) which also uses Pydantic for validation
And also think on some ways to give users a way to customize validation messages...

Do you have any design in mind ? like how would you prefer to customize validation message and on which layer ?

Collapse
 
fuadrafid profile image
Muhtasim Fuad Rafid • Edited

Hi,
Thank for sharing your work. I think the validation can be incorporated with the dtos with an annotation and validation checks should be at the middleware layer.