-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ValidationErrorItem value property does not contain "The value that generated the error" #3899
Comments
Can you provide a small test case? |
This bug is still outstanding, and exists for every validation. To confirm it, just set up a validation for any model, enter data so that it fails validation and console log the errors:
|
Please would you re-open this issue, or link it to an existing issue if it's a duplicate? |
@superclarkk to help out you can add a model definition and call that triggers this. |
|
Note that schema validations seem to store the "value" property correctly - so, this bug only affects standard validations. |
According to the docs, the
value
property of the ValidationErrorItem(message, type, path, value) object should contain "The value that generated the error", but instead it contains the error message.The text was updated successfully, but these errors were encountered: