UNPKG

json-schema-describes-subset

Version:

Tools for static JSON schema analysis, including functions to determine if one schema describes a subset of another or if a schema describes the empty set or to convert a schema to its disjunctive normal form (DNF).

7 lines (6 loc) 293 B
import { type JSONSchema } from '../../json-schema/index.js'; export declare function traverseJSONSchema<Data>(schema: JSONSchema, callback: (schema: Record<string, unknown>, data: Data, args: { parent: JSONSchema | null; }) => Data, data: Data, args?: { parent: JSONSchema; }): void;