1 | export declare class SchemerError extends Error {
|
2 | readonly name = "SchemerError";
|
3 | errors: ValidationError[];
|
4 | constructor(errors: ValidationError[]);
|
5 | }
|
6 | export declare class ValidationError extends Error {
|
7 | readonly name = "ValidationError";
|
8 | errorCode: string;
|
9 | fieldPath: string;
|
10 | data: any;
|
11 | meta: any;
|
12 | constructor({ errorCode, fieldPath, message, data, meta, }: {
|
13 | errorCode: ErrorCode;
|
14 | fieldPath: string;
|
15 | message: string;
|
16 | data: any;
|
17 | meta: any;
|
18 | });
|
19 | }
|
20 | export type ErrorCode = keyof typeof ErrorCodes;
|
21 | export declare const ErrorCodes: {
|
22 | SCHEMA_VALIDATION_ERROR: string;
|
23 | SCHEMA_ADDITIONAL_PROPERTY: string;
|
24 | SCHEMA_MISSING_REQUIRED_PROPERTY: string;
|
25 | SCHEMA_INVALID_PATTERN: string;
|
26 | SCHEMA_INVALID_NOT: string;
|
27 | INVALID_ASSET_URI: string;
|
28 | INVALID_DIMENSIONS: string;
|
29 | INVALID_CONTENT_TYPE: string;
|
30 | NOT_SQUARE: string;
|
31 | FILE_EXTENSION_MISMATCH: string;
|
32 | };
|