validarium
validarium copied to clipboard
New feature - conditional validations
I think it would be useful to have conditional validations. Like
validate({
firstName: { validations: [isRequired, ...], conditions: [isUserPresent, ...]},
})
conditions should get all form values.
Or we can make condition part of validation itself if we extend the API.