diff --git a/jsonschema/jsonschema-tests.ts b/jsonschema/jsonschema-tests.ts new file mode 100644 index 0000000000..e8acc29886 --- /dev/null +++ b/jsonschema/jsonschema-tests.ts @@ -0,0 +1,6 @@ +/// +import { Validator, IJSONSchemaValidationError } from "jsonschema"; + +const v: Validator = new Validator(); + +const validationResults: { errors: Array } = v.validate("Smith", {"type": "string"}); diff --git a/jsonschema/jsonschema.d.ts b/jsonschema/jsonschema.d.ts index 2d52fb978e..9e32dbfded 100644 --- a/jsonschema/jsonschema.d.ts +++ b/jsonschema/jsonschema.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsonschema // Project: https://github.com/tdegrunt/jsonschema -// Definitions by: Vlado Tešanovic https://github.com/vladotesanovic +// Definitions by: Vlado Tešanovic // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "jsonschema" {