@jirutka/ajv-cli
Version:
CLI for Ajv JSON Schema Validator with human-friendly error messages
7 lines (6 loc) • 321 B
TypeScript
import type { JSONSchema7 as JSONSchema } from 'json-schema';
/**
* Adds {@link SchemaPathSymbol} property with JSON Path to each schema object
* in the given `jsonSchema`. This function **mutates** the given `jsonSchema`!
*/
export declare function injectPathToSchemas(jsonSchema: JSONSchema, prefix?: string): void;