We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ "type": "object", "properties": { "customer": { "type": "object", "properties": { "name": { "type": "string", "required": true } } }, "user": { "type": "object", "properties":{ "name": { "type": "string", "required": true } } } } }
and if I provided the value like
{ "customer": { }, "user": { } }
Then I get the error like
{ "errors": [ { "attribute": "required", "property": "user.name", "expected": true, "message": "is required" }, { "attribute": "required", "property": "customer.name", "expected": true, "message": "is required" } ] }
That is the order of the error message is wrong. I need to get customer and then user.
The text was updated successfully, but these errors were encountered:
Update revalidator.js
3b1add4
For the issue flatiron#98 flatiron#98
feat: Save nested error messages in correct order
058dad7
ref: flatiron/revalidator#98
No branches or pull requests
and if I provided the value like
Then I get the error like
That is the order of the error message is wrong. I need to get customer and then user.
The text was updated successfully, but these errors were encountered: