| 12345678910111213141516171819 |
- import { Web3ValidationErrorObject } from 'web3-types';
- import { Validate, Json, Schema } from './types.js';
- export declare class Validator {
- private static validatorInstance?;
- private constructor();
- static factory(): Validator;
- private readonly _schemas;
- getSchema(key: string): Validate | undefined;
- addSchema(key: string, schema: Schema): void;
- private createValidator;
- validate(schema: Schema, data: Json, options?: {
- silent?: boolean;
- }): Web3ValidationErrorObject<string, Record<string, any>, unknown>[] | undefined;
- private convertErrors;
- getOrCreateValidator(schema: Schema): Validate;
- static getKey(schema: Schema): string;
- private getObjectValueByPath;
- private untilde;
- }
|