@rescriptbr/reschema
v3.0.3
Published
Schema validation made easy for ReScript
Downloads
1,769
Keywords
Readme
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"
],
}