andremw / reschema

✅ Schema validation made easy for ReScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


What is this?FeaturesInstallationDocumentationLive demo (with ReForm)


What is this? 💡

ReSchema is a schema builder for ReScript. We created ReSchema to be deadly simple, leveraging ReScript's powerful typesytem. Schemas created with ReSchema are nothing more than constructors built-in in the language itself with a small size footprint.

Features ⚡

  • Schema validation using GADT's
  • Built-in validators
  • Type-safe validation
  • I18n support
  • Regex support
  • Custom validations

Installation 📦

yarn add @rescriptbr/reschema

and then, add ReSchema as a dependency in your bsconfig.json

{
  ...
  "bs-dependencies": [
    "@rescriptbr/reschema"
  ],
}

Documentation 🔎

About

✅ Schema validation made easy for ReScript

License:MIT License


Languages

Language:ReScript 99.6%Language:JavaScript 0.4%