A better way to override default error messages and error schemas #8832
Unanswered
bitterteriyaki
asked this question in
Ideas & Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there is no a good way to override the default error messages and schema. For example:
{ "username": [ "This field may not be null." ], "email": [ "This field is required." ], "password": [ "This field is required." ] }This above is the default error messages and schema, I want to change it to look like the following:
{ "details": [ "username field may not be null", "email field is required", "password field is required" ] }As long that I searched, there is no a good and native way to do this. What do you guys think about it?
Beta Was this translation helpful? Give feedback.
All reactions