@integrationos-playground/validator
v0.0.0-ulquiorra-38b1aa23fb3fb5db1e6f3cffe5c27cacd09ccaa8
Published
A validator for the integrationos common model representations
Downloads
187
Readme
System Validator
Description
The IOs common model validator is a Schema
based validator that tailored for the IOs common model. It is designed to check with rigor the data that is being received from our unified
API.
Installation
npm install @integrationos-playground/validator
Sometimes you may need to install the @integrationos-playground/common
package as well as it may not install peer dependencies automatically.
npm install @integrationos-playground/common effect @effect/cli @effect/typeclass @effect/platform @effect/platform-node @effect/printer-ansi @effect/schema
Usage
This package exposes three methods:
validate
- This method is used to validate the data against a schema.validateOrThrow
- This method is used to validate the data against a schema and throw an error if the data is invalid.calculate
- This method is used to calculate how much data has been lost during the transformation.