Giving error messages for pattern(regex) matching. #693
Unanswered
harshalkumar-ishi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to give error message if pattern or regex not matched in model Field of pydantic pydantic.
i have a model with fields like as follows:
class AuthUserRealmCreate(BaseModel):
i want to show custom message like "Email field is invalid." or "Contact number is invalid." in the UI.
Beta Was this translation helpful? Give feedback.
All reactions