This package has been deprecated

Author message:

This package is now published as @0xproject/json-schemas. Please remove this dependency and install the new one.

0x-json-schemas
TypeScript icon, indicating that this package has built-in type declarations

0.6.6 • Public • Published

json-schemas CircleCI

Contains 0x-related json schemas

Usage:

import {SchemaValidator, ValidatorResult, schemas} from '0x-json-schemas';

const {orderSchema} = schemas;
const validator = new SchemaValidator();

const order = {
    ...
};
const validatorResult: ValidatorResult = validator.validate(order, orderSchema); // Contains all errors
const isValid: boolean = validator.isValid(order, orderSchema); // Only returns boolean

Dependencies (2)

Dev Dependencies (15)

Package Sidebar

Install

npm i 0x-json-schemas

Weekly Downloads

145

Version

0.6.6

License

Apache-2.0

Last publish

Collaborators

  • amirbandeali
  • wwarren
  • bchillman
  • fberger
  • logvinov