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
This project seems stale and from what I saw on encode page it's not a priority right now. Since I was tired with reinventing the wheel and needed something as soon as possible I created ormar package, that was inspired by this one.
Ormar bases its validation on pydantic so it can be used directly with fastapi as response and request models.
Django ORM field can have a choice argument to validate data.
I tried to add choices argument, but I don't know how to do it right.
My code looks like below.
Although we can use Choice schema class to validate choice data, the inheritance will make us confused. and we have to overload validate function
The text was updated successfully, but these errors were encountered: