npm

Need private packages and team management tools?Check out npm Orgs. »

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

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

Keywords

none

install

npm i 0x-json-schemas

Downloadsweekly downloads

21

version

0.6.6

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability