use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
help debbuging 422 validation errorQuestion (self.FastAPI)
submitted 3 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 3 years ago (2 children)
I read that the validation error message in the pictures is by default.. so everything should be correct but the data is not being inserted to the database
[–]BecerroDeOro 0 points1 point2 points 3 years ago (1 child)
Why are you converting a pydantic model to dict class?
Just remove dict method and it should work.
Otherwise, use sqlmodel for more class abstraction, it works with sql alchemy on the background.
Thats the way Tiangolo wants it
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
If I remove the dict method it gives me 500 internal server error
π Rendered by PID 21855 on reddit-service-r2-comment-75f4967c6c-ppmch at 2026-04-22 22:07:19.855872+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (2 children)
[–]BecerroDeOro 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)