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).
6 lines (5 loc) • 476 B
TypeScript
import { type JSONSchema } from '../json-schema/index.js';
import { type LogicalCombination } from '../atomic-schema/index.js';
import type { ExtractionPlugin, ExtractFunctionArguments } from '../plugin/index.js';
export declare function extractIfThenElse(split: ExtractFunctionArguments['split'], ifSchema: JSONSchema, thenSchema?: JSONSchema | undefined, elseSchema?: JSONSchema | undefined): LogicalCombination;
export declare const ifThenElseExtraction: ExtractionPlugin;