diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 09:24:11 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 09:24:11 +0800 |
commit | 7b248096988e70c01cb6960846a27e9ad5a7ffda (patch) | |
tree | 113350f7cb97eb6a1b69efc93352086b0feaf0a0 /src | |
parent | ca92502d34a28c6e9a638d299b0dccce40dc9675 (diff) | |
download | dexon-sol-tools-7b248096988e70c01cb6960846a27e9ad5a7ffda.tar.gz dexon-sol-tools-7b248096988e70c01cb6960846a27e9ad5a7ffda.tar.zst dexon-sol-tools-7b248096988e70c01cb6960846a27e9ad5a7ffda.zip |
Register new schemas within schema validator
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/schema_validator.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/schema_validator.ts b/src/utils/schema_validator.ts index e3f911adb..609d11a1a 100644 --- a/src/utils/schema_validator.ts +++ b/src/utils/schema_validator.ts @@ -3,6 +3,8 @@ import {ecSignatureSchema, ecSignatureParameterSchema} from '../schemas/ec_signa import {orderSchema, signedOrderSchema} from '../schemas/order_schemas'; import {addressSchema, numberSchema} from '../schemas/basic_type_schemas'; import {tokenSchema} from '../schemas/token_schema'; +import {subscriptionOptsSchema, blockParamSchema} from '../schemas/subscription_opts_schema'; +import {indexFilterValuesSchema} from '../schemas/index_filter_values_schema'; import {orderFillOrKillRequestsSchema} from '../schemas/order_fill_or_kill_requests_schema'; export class SchemaValidator { @@ -13,8 +15,11 @@ export class SchemaValidator { this.validator.addSchema(orderSchema, orderSchema.id); this.validator.addSchema(numberSchema, numberSchema.id); this.validator.addSchema(addressSchema, addressSchema.id); + this.validator.addSchema(blockParamSchema, blockParamSchema.id); this.validator.addSchema(ecSignatureSchema, ecSignatureSchema.id); this.validator.addSchema(signedOrderSchema, signedOrderSchema.id); + this.validator.addSchema(subscriptionOptsSchema, subscriptionOptsSchema.id); + this.validator.addSchema(indexFilterValuesSchema, indexFilterValuesSchema.id); this.validator.addSchema(ecSignatureParameterSchema, ecSignatureParameterSchema.id); this.validator.addSchema(orderFillOrKillRequestsSchema, orderFillOrKillRequestsSchema.id); } |