1 | export default ValidationError;
|
2 | export type JSONSchema6 = import("json-schema").JSONSchema6;
|
3 | export type JSONSchema7 = import("json-schema").JSONSchema7;
|
4 | export type Schema = import("./validate").Schema;
|
5 | export type ValidationErrorConfiguration =
|
6 | import("./validate").ValidationErrorConfiguration;
|
7 | export type PostFormatter = import("./validate").PostFormatter;
|
8 | export type SchemaUtilErrorObject = import("./validate").SchemaUtilErrorObject;
|
9 | declare class ValidationError extends Error {
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 | constructor(
|
16 | errors: Array<SchemaUtilErrorObject>,
|
17 | schema: Schema,
|
18 | configuration?: ValidationErrorConfiguration
|
19 | );
|
20 | /** @type {Array<SchemaUtilErrorObject>} */
|
21 | errors: Array<SchemaUtilErrorObject>;
|
22 |
|
23 | schema: Schema;
|
24 |
|
25 | headerName: string;
|
26 |
|
27 | baseDataPath: string;
|
28 |
|
29 | postFormatter: PostFormatter | null;
|
30 | |
31 |
|
32 |
|
33 |
|
34 | getSchemaPart(path: string): Schema;
|
35 | |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | formatSchema(
|
42 | schema: Schema,
|
43 | logic?: boolean,
|
44 | prevSchemas?: Array<Object>
|
45 | ): string;
|
46 | |
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | getSchemaPartText(
|
54 | schemaPart?: Schema | undefined,
|
55 | additionalPath?: (boolean | Array<string>) | undefined,
|
56 | needDot?: boolean | undefined,
|
57 | logic?: boolean | undefined
|
58 | ): string;
|
59 | |
60 |
|
61 |
|
62 |
|
63 | getSchemaPartDescription(schemaPart?: Schema | undefined): string;
|
64 | |
65 |
|
66 |
|
67 |
|
68 | formatValidationError(error: SchemaUtilErrorObject): string;
|
69 | |
70 |
|
71 |
|
72 |
|
73 | formatValidationErrors(errors: Array<SchemaUtilErrorObject>): string;
|
74 | }
|