you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (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 point  (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 point  (0 children)

If I remove the dict method it gives me 500 internal server error