UNPKG

@json-schema-tools/traverse

Version:

This package exports a method that will traverse a JSON-Schema, calling a mutation function for each sub schema found. It is useful for building tools to work with JSON Schemas.

5 lines (4 loc) 300 B
import { JSONSchema } from "@json-schema-tools/meta-schema"; export declare const jsonPathStringify: (s: string[]) => string; export declare const isCycle: (s: JSONSchema, recursiveStack: JSONSchema[]) => JSONSchema | false; export declare const last: (i: JSONSchema[], skip?: number) => JSONSchema;