mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
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.
This commit is contained in:
3
jsonschema/index.d.ts
vendored
3
jsonschema/index.d.ts
vendored
@@ -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 <https://github.com/vladotesanovic>, kinesivan <https://github.com/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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user