UNPKG

@jirutka/ajv-cli

Version:

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

18 lines (17 loc) 471 B
import type { ErrorObject } from 'ajv/dist/core.js'; import type { Optional } from 'utility-types'; export type ValidationError = Optional<ErrorObject, 'keyword' | 'params' | 'propertyName'> & { instanceLocation?: { filename: string; } & (LocationRange | { [K in keyof LocationRange]: undefined; }); }; export interface LocationRange { start: Location; end: Location; } export interface Location { line: number; col: number; }