aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 00:13:07 +0800
committerFabio Berger <me@fabioberger.com>2017-05-30 00:13:07 +0800
commit46fb1914cfef6af8423897ef5edb477ba5e40665 (patch)
treec393edd9f1f421d69bcd67b9e3cf561e9c521233 /src/utils
parent43082b576ce764cf896d6c3b9fdae8c414467794 (diff)
downloaddexon-sol-tools-46fb1914cfef6af8423897ef5edb477ba5e40665.tar
dexon-sol-tools-46fb1914cfef6af8423897ef5edb477ba5e40665.tar.gz
dexon-sol-tools-46fb1914cfef6af8423897ef5edb477ba5e40665.tar.bz2
dexon-sol-tools-46fb1914cfef6af8423897ef5edb477ba5e40665.tar.lz
dexon-sol-tools-46fb1914cfef6af8423897ef5edb477ba5e40665.tar.xz
dexon-sol-tools-46fb1914cfef6af8423897ef5edb477ba5e40665.tar.zst
dexon-sol-tools-46fb1914cfef6af8423897ef5edb477ba5e40665.zip
Lowercase schema names
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/schema_validator.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/schema_validator.ts b/src/utils/schema_validator.ts
index bd2f97d2b..61f4c09c8 100644
--- a/src/utils/schema_validator.ts
+++ b/src/utils/schema_validator.ts
@@ -1,12 +1,12 @@
import {Validator, ValidatorResult} from 'jsonschema';
-import {ECSignatureSchema, ECSignatureParameter} from '../schemas/ec_signature_schema';
+import {ecSignatureSchema, ecSignatureParameter} from '../schemas/ec_signature_schema';
export class SchemaValidator {
private validator: Validator;
constructor() {
this.validator = new Validator();
- this.validator.addSchema(ECSignatureParameter, ECSignatureParameter.id);
- this.validator.addSchema(ECSignatureSchema, ECSignatureSchema.id);
+ this.validator.addSchema(ecSignatureParameter, ecSignatureParameter.id);
+ this.validator.addSchema(ecSignatureSchema, ecSignatureSchema.id);
}
public validate(instance: object, schema: Schema): ValidatorResult {
return this.validator.validate(instance, schema);