DEV Community


Discussion on: Fight Validations Spaghetti with Vest.

larswww profile image

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 Author

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.

Forem Open with the Forem app