From 4d2dcc5df99cda27790ee9e2261ae69d200e0d22 Mon Sep 17 00:00:00 2001 From: Xavier Brown Date: Sat, 26 Nov 2016 00:11:28 -0600 Subject: [PATCH] Add success flag property JSONSchema validation results have a `valid` bool that certifies whether the validated JSON came back positive or not. When importing these definitions into my project, this property wasn't there, so I had to add it locally. It should be there. --- jsonschema/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsonschema/index.d.ts b/jsonschema/index.d.ts index 1c2f0f915e..8d182b50b9 100644 --- a/jsonschema/index.d.ts +++ b/jsonschema/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsonschema // Project: https://github.com/tdegrunt/jsonschema -// Definitions by: Vlado Tešanovic +// Definitions by: Vlado Tešanovic , kinesivan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "jsonschema" { @@ -11,6 +11,7 @@ declare module "jsonschema" { propertyPath: string; name: string; schema: {}; + valid: boolean; throwError: any; disableFormat: boolean; }