UNPKG

@jirutka/ajv-cli

Version:

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

8 lines (7 loc) 437 B
import { Ajv as Ajv7, SchemaObject } from 'ajv'; import { type CommonOptions, schemaSpecs } from './commands/common.js'; type AjvCore = typeof Ajv7; type JsonSchemaSpec = (typeof schemaSpecs)[number]; export declare function initAjv(opts: CommonOptions, mode: 'compile' | 'validate'): Promise<InstanceType<AjvCore>>; export declare function resolveSchemaSpec(schema: SchemaObject): Exclude<JsonSchemaSpec, 'jdt'> | undefined; export {};