Meteor doesn't have a built in validation smart package yet. What validation libraries should I consider? What are other people using?
Form Input Validation with Meteor
meteor
meteor
Meteor doesn't have a built in validation smart package yet. What validation libraries should I consider? What are other people using?
Best Answer
We decided to use simpleSchema with Collection2 and autoform for validation. It's a very sophisticated solution. We save a lot of time using this approach rather than trying to roll each form by hand.
Simply by defining a scheme with validation rules (validation rules are provided automatically for data type and isRequired settings) then creating a form with autoForm (a single line of code) and you get all this for free
meteor-simple-schema A simple, reactive schema validation smart package for Meteor. https://github.com/aldeed/meteor-simple-schema
meteor-collection2 A smart package for Meteor that extends Meteor.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating. Also adds support for virtual fields. https://github.com/aldeed/meteor-collection2
meteor-autoform A smart package for Meteor that adds UI components and helpers to easily create basic forms with automatic insert and update events, and automatic reactive validation. https://github.com/aldeed/meteor-autoform