Skip to content
Nasdan edited this page Aug 14, 2019 · 5 revisions

Why a form validator library

There are many great libraries to manage forms, e.g.:

  • React Final Form.
  • Formik.

There are form validation schemas available like:

  • Yup.
  • Joi.
  • Redux form validators.

The issues with this form schemas validation libraries are:

  • You need to learn a complex api and covering advanced cases can become tricky.
  • Some of them are tied up to a given library (e.g. redux).

We think there is room to create a form schema validator library:

  • Library agnostic (plain vanilla ES6).
  • Extensible (extensions can be implemented for specific libraries).
  • With a simplified api.
  • Than encourages separation of concerns + easy testing of form validations.

Documentation

Draft form-validator proposal

Clone this wiki locally