@hyperjump/json-schema 1.16.3 → 1.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/annotations/index.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
package/annotations/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type Annotator = (value: Json, options?: OutputFormat | ValidationOptions
|
|
|
15
15
|
export const interpret: (compiledSchema: CompiledSchema, value: JsonNode, options?: OutputFormat | ValidationOptions) => JsonNode;
|
|
16
16
|
|
|
17
17
|
export class ValidationError extends Error {
|
|
18
|
-
public output: Output;
|
|
18
|
+
public output: Output & { valid: false };
|
|
19
19
|
|
|
20
20
|
public constructor(output: Output);
|
|
21
21
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export const setShouldValidateSchema: (isEnabled: boolean) => void;
|
|
|
56
56
|
export const getShouldValidateSchema: () => boolean;
|
|
57
57
|
|
|
58
58
|
export class InvalidSchemaError extends Error {
|
|
59
|
-
public output: Output;
|
|
59
|
+
public output: Output & { valid: false };
|
|
60
60
|
|
|
61
61
|
public constructor(output: Output);
|
|
62
62
|
}
|
package/package.json
CHANGED