open-index/open-npm huggingface dataset:
npm package: 0x-json-schemas
Description: 0x-related json schemas
Latest version: 0.6.6
Deprecated: This package is now published as @0xproject/json-schemas. Please remove this dependency and install the new one.

# json-schemas [![CircleCI](https://circleci.com/gh/0xProject/json-schemas.svg?style=svg)](https://circleci.com/gh/0xProject/json-schemas)
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
```