DEV Community

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

Collapse
 
mirzadelic profile image
Mirza Delic

I am having the same problem with validations with FastAPI.
Django Rest Framework is doing a great job with this, example:

{
    "name": ["This field is required."]
}
Enter fullscreen mode Exit fullscreen mode

Did you found any solution for better formating of validation errors in FastAPI?

Collapse
 
fuadrafid profile image
Muhtasim Fuad Rafid

Hello Mirza,
I haven't really looked into it. But you can look into this GitHub thread:
github.com/tiangolo/fastapi/issues...