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).
19 lines (18 loc) • 799 B
TypeScript
import type { ExtractionPlugin, ConjunctionSchema } from '../plugin/index.js';
import { AtomicSchemaObject, type LogicalCombinationOfLiterals } from '../atomic-schema/index.js';
export declare class ConstAtomicSchema<Type = unknown> extends AtomicSchemaObject {
readonly const: Type;
constructor(constValue: Type);
negate(): LogicalCombinationOfLiterals;
toJSONSchema(): {
const: unknown;
};
}
export declare const constExtraction: ExtractionPlugin;
export declare const constSimplification: {
readonly appliesToJSONSchemaType: undefined;
readonly mergeableKeywords: [];
readonly simplify: ({ atomicSchemasByConstructor, validateConst, }: import("../plugin/plugin.js").SimplificationPluginArguments) => ConjunctionSchema<{
allOf?: never[];
}>;
};