* development: Remove clean step from test_umd.sh Update CHANGELOG.md vx.x.x Add CHANGELOG files to each sub-package Fix 0x.js CHANGELOG separate assignment and call Remove Async subscribe callbacks from OrderWatcher Update changelog Callback for subscribe no longer supports an Async Callback
json-schemas
Contains 0x-related json schemas
Install:
npm install @0xproject/json-schemas --save
Usage:
import {SchemaValidator, ValidatorResult, schemas} from '@0xproject/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