You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a FastAPI + Pydantic + TortoiseORM Project with crud routes... like any other API.
one thing frustrating me is handling errors caused by unique constraint violations.
why does the tortoise return only the first violations, how am I supposed to check for other constraint violations.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
I'm working on a FastAPI + Pydantic + TortoiseORM Project with crud routes... like any other API.
one thing frustrating me is handling errors caused by unique constraint violations.
why does the tortoise return only the first violations, how am I supposed to check for other constraint violations.
for example:
will only throw the business_name unique constraint violation.
Beta Was this translation helpful? Give feedback.
All reactions