You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
(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.The text was updated successfully, but these errors were encountered: