Make validation error levels configurable / customizable #102

Closed
Marak opened this Issue Aug 21, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@Marak
Contributor

Marak commented Aug 21, 2012

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.

@Marak

This comment has been minimized.

Show comment Hide comment
@Marak

Marak May 27, 2013

Contributor

invalid

Contributor

Marak commented May 27, 2013

invalid

@indexzero

This comment has been minimized.

Show comment Hide comment
@indexzero

indexzero May 28, 2013

Member

Duplicate of #146

Member

indexzero commented May 28, 2013

Duplicate of #146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment