Yup

What is Yup

Yup is a schema builder for runtime value parsing and validation. Define a schema, transform a value to match, assert the shape of an existing value, or both. Yup schema are extremely expressive and allow modeling complex, interdependent validations, or value transformation.

cons

  • typescript support

  • concise

  • async validation support

  • extensible

  • rich error details

Dependencies

{
    "dependencies": {
      "property-expr": "^2.0.5",
      "tiny-case": "^1.0.3",
      "toposort": "^2.0.2",
      "type-fest": "^2.19.0"
  }
}

Ref

  • yup at Github