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

Make validation error levels configurable / customizable #146

Open
indexzero opened this issue May 28, 2013 · 0 comments
Open

Make validation error levels configurable / customizable #146

indexzero opened this issue May 28, 2013 · 0 comments

Comments

@indexzero
Copy link
Member

(Purposeful duplicate of #102)

Currently, resourceful handles the construction of validation errors somewhat manually. The validation itself is performed in revalidator, with the results being passed to resourceful.

The issue is that resourceful has a bunch of lines like : var e = { validate: validate, value: obj, schema: this.schema };

This manual construction of e should all be replaced with a common function for constructing validation errors. This function should be able to be configurable / swappable. The goal is to be able to easily change the level of details that a validation errors return.

The errs library could be used inside this common construction function.

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

No branches or pull requests

1 participant