UNPKG

@jirutka/ajv-cli

Version:

CLI for Ajv JSON Schema Validator with human-friendly error messages

13 lines (12 loc) 938 B
import type { VerboseErrorObject, Schema, JSONSchemaObject } from './types.js'; export declare const ofErrorKeywords: string[]; export declare const parentKeywordsOk: string[]; export declare function getDataReferencePath(dataVar: string, path: string): string; export declare function getOfChoiceIndex(parent: unknown[], schemaPath: string): number; export declare function getValueMatchScore(data: unknown, valuesToCheck: unknown): number; export declare function getPropertyMatchScore(data: JSONSchemaObject, schema?: Schema): number; export declare function areErrorsEqual(error1: VerboseErrorObject, error2: VerboseErrorObject): boolean; export declare function getType(variable: unknown): string; export declare function isArray<T>(variable: unknown): variable is Array<T>; export declare function getSchemaType(entry?: Schema | boolean): string[]; export declare function getCommonPrefix(string1: string, string2: string): string;