From 46fb1914cfef6af8423897ef5edb477ba5e40665 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Mon, 29 May 2017 18:13:07 +0200 Subject: Lowercase schema names --- src/utils/schema_validator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils/schema_validator.ts') 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); -- cgit v1.2.3