/
asias
/
new
Обзор
Документация
Войти
/
asias
/
new
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/schema-utils/declarations/ValidationError.d.ts
74 строки
2 KB
AnastasyaDemina
project
07 дек 2025, 23:03
07 дек 2025, 23:03
7c21e25
Код
Авторство
О чём код?
export default ValidationError; export type JSONSchema6 = import("json-schema").JSONSchema6; export type JSONSchema7 = import("json-schema").JSONSchema7; export type Schema = import("./validate").Schema; export type ValidationErrorConfiguration = import("./validate").ValidationErrorConfiguration; export type PostFormatter = import("./validate").PostFormatter; export type SchemaUtilErrorObject = import("./validate").SchemaUtilErrorObject; declare class ValidationError extends Error { /** * @param {Array<SchemaUtilErrorObject>} errors array of error objects * @param {Schema} schema schema * @param {ValidationErrorConfiguration} configuration configuration */ constructor( errors: Array<SchemaUtilErrorObject>, schema: Schema, configuration?: ValidationErrorConfiguration, ); /** @type {Array<SchemaUtilErrorObject>} */ errors: Array<SchemaUtilErrorObject>; /** @type {Schema} */ schema: Schema; /** @type {string} */ headerName: string; /** @type {string} */ baseDataPath: string; /** @type {PostFormatter | null} */ postFormatter: PostFormatter | null; /** * @param {string} path path * @returns {Schema} schema */ getSchemaPart(path: string): Schema; /** * @param {Schema} schema schema * @param {boolean} logic logic * @param {Array<object>} prevSchemas prev schemas * @returns {string} formatted schema */ formatSchema( schema: Schema, logic?: boolean, prevSchemas?: Array<object>, ): string; /** * @param {Schema=} schemaPart schema part * @param {(boolean | Array<string>)=} additionalPath additional path * @param {boolean=} needDot true when need dot * @param {boolean=} logic logic * @returns {string} schema part text */ getSchemaPartText( schemaPart?: Schema | undefined, additionalPath?: (boolean | Array<string>) | undefined, needDot?: boolean | undefined, logic?: boolean | undefined, ): string; /** * @param {Schema=} schemaPart schema part * @returns {string} schema part description */ getSchemaPartDescription(schemaPart?: Schema | undefined): string; /** * @param {SchemaUtilErrorObject} error error object * @returns {string} formatted error object */ formatValidationError(error: SchemaUtilErrorObject): string; /** * @param {Array<SchemaUtilErrorObject>} errors errors * @returns {string} formatted errors */ formatValidationErrors(errors: Array<SchemaUtilErrorObject>): string; }