Undistraction / folktale-validations

Validators and related utils for working with Folktale's Validation.
MIT License
7 stars 3 forks source link

Support Constraint Validation With Array As Root #11

Open Undistraction opened 6 years ago

Undistraction commented 6 years ago

Handle constraint validation where the object being validated is an Array by adding validateArrayWithConstraints(constraints, object).

This function would effectively do:

validateIsArrayOf(validateObjectWithConstraints, o)

With the constraints object validating each item in the array.