Skip to content
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

Add failed constraints to schema errors #75

Merged
merged 1 commit into from
Feb 24, 2014

Conversation

ldodds
Copy link
Contributor

@ldodds ldodds commented Feb 24, 2014

Closes #64.

Schema messages will now have a constraints hash that holds the relevant constraint that failed. This is useful for some errors as we can provide more detail in the application about what failed, e.g. the minLength, minimum range, date pattern, etc.

pezholio added a commit that referenced this pull request Feb 24, 2014
@pezholio pezholio merged commit 79e9515 into master Feb 24, 2014
@pezholio pezholio deleted the feature-include-failed-constraints branch February 24, 2014 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include the failed constraints in error message when doing field validation
2 participants