DEV Community

Discussion on: Fight Validations Spaghetti with Vest.

Collapse
 
larswww profile image
larswww

man thanks a lot that is really helpful perspective, esp. re useful for validating a whole form vs specific fields!

"You can base your validations on anything that either throws an error, or explicitly returns false" sounds really flexible :)

Thread Thread
 
ealush profile image
Evyatar Alush

Thanks :)
The intention is not flexibility (took me a while to realize flexibility isn't always a good thing), but to allow easy migration of existing validation logic. Validations are usually boolean based, so this helps with that.