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).

10 lines (9 loc) 567 B
import type { JSONSchema } from '../json-schema/index.js'; import type { Options } from '../options/options.js'; import type { SchemaDescribesEmptySet } from '../dnf/index.js'; /** * Factory function to create `schemaDescribesSubset`. `schemaDescribesSubset` * is not created directly to avoid cyclic imports when used internally. * */ export declare function schemaDescribesSubsetFactory(schemaDescribesEmptySet: SchemaDescribesEmptySet): (potentialSubsetSchema: JSONSchema, potentialSupersetSchema: JSONSchema, options?: Options | undefined) => boolean | null;