-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return error code for API application #652
Comments
Would you please elaborate with some example? It's not clear now. |
As in symfony: https://github.com/symfony/validator/blob/bf0e20ac57f038ef6ea52f83aa474b5f567ff9a1/Constraints/Email.php#L29 Every error has individual code. |
Example
|
I see. That makes sense if client needs to handle errors of a kind in a special way. |
Need to decide where exactly the code will be attached to. Will it be a rule / individual error / similar errors (incorrect input, etc.)? |
I think need add individual codes to individual errors. Also need ability change code as in concrete rule as in globally. |
Return error code for property validate rules on API application.
The text was updated successfully, but these errors were encountered: