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) • 928 B
TypeScript
/**
* Returns the maximum when the given minimum is negated. The given minimum does
* not need to be an integer, but the returned maximum will be and the set of
* numbers the minimum/maximum applies to is expected to contain integers only.
* Can be used to respective value for `maxLength`, `maxProperties` or
* `maxItems` when negating `minLength`, `minProperties` or `minItems`.
*
*/
export declare function negateIntegerMinimum(minimum: number): number;
/**
* Returns the minimum when the given maximum is negated. The given maximum does
* not need to be an integer, but the returned minimum will be and the set of
* numbers the minimum/maximum applies to is expected to contain integers only.
* Can be used to respective value for `minLength`, `minProperties` or
* `minItems` when negating `maxLength`, `maxProperties` or `maxItems`.
*
*/
export declare function negateIntegerMaximum(maximum: number): number;