@picahq/validator
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-kakashi-021c914c4206bdc79e8643b1812c06b45ff858a0 • Public • Published

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 @picahq/validator

Sometimes you may need to install the @picahq-playground/common package as well as it may not install peer dependencies automatically.

npm install @picahq/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @picahq/validator

Weekly Downloads

4

Version

0.0.0-kakashi-021c914c4206bdc79e8643b1812c06b45ff858a0

License

GPL-3.0-only

Unpacked Size

15.2 kB

Total Files

31

Last publish

Collaborators

  • moe-giga
  • buildable.paul
  • picabot
  • peterkuczera
  • krishp