diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 20:55:43 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 20:55:43 +0800 |
commit | 3e65ac018c145d9fb49ece6cb113ae577f84323b (patch) | |
tree | 49f3b63f898b78c2b210b56b01e96f62887161b0 /src/utils | |
parent | dfcf49464b1a93b6e5df39289e9d14b2e60e62d2 (diff) | |
parent | 6b321ca1c70b9dcf188b2a112015386cba0ad5f2 (diff) | |
download | dexon-sol-tools-3e65ac018c145d9fb49ece6cb113ae577f84323b.tar dexon-sol-tools-3e65ac018c145d9fb49ece6cb113ae577f84323b.tar.gz dexon-sol-tools-3e65ac018c145d9fb49ece6cb113ae577f84323b.tar.bz2 dexon-sol-tools-3e65ac018c145d9fb49ece6cb113ae577f84323b.tar.lz dexon-sol-tools-3e65ac018c145d9fb49ece6cb113ae577f84323b.tar.xz dexon-sol-tools-3e65ac018c145d9fb49ece6cb113ae577f84323b.tar.zst dexon-sol-tools-3e65ac018c145d9fb49ece6cb113ae577f84323b.zip |
Merge branch 'master' into fillOrderAsync
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/schema_validator.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/schema_validator.ts b/src/utils/schema_validator.ts index 5b2c4aaa5..cf45d0343 100644 --- a/src/utils/schema_validator.ts +++ b/src/utils/schema_validator.ts @@ -1,11 +1,13 @@ import {Validator, ValidatorResult} from 'jsonschema'; import {ecSignatureSchema, ecSignatureParameter} from '../schemas/ec_signature_schema'; import {addressSchema, numberSchema, orderSchema, signedOrderSchema} from '../schemas/signed_order_schema'; +import {tokenSchema} from '../schemas/token_schema'; export class SchemaValidator { private validator: Validator; constructor() { this.validator = new Validator(); + this.validator.addSchema(tokenSchema, tokenSchema.id); this.validator.addSchema(orderSchema, orderSchema.id); this.validator.addSchema(numberSchema, numberSchema.id); this.validator.addSchema(addressSchema, addressSchema.id); |