UNPKG

@redocly/ajv

Version:

Another JSON Schema Validator

13 lines (12 loc) 437 B
import type { CodeKeywordDefinition, ErrorObject } from "../../../types"; export type LimitKwd = "maximum" | "minimum"; export type ExclusiveLimitKwd = "exclusiveMaximum" | "exclusiveMinimum"; type Comparison = "<=" | ">=" | "<" | ">"; export type LimitNumberError = ErrorObject<LimitKwd, { limit: number; comparison: Comparison; }, number | { $data: string; }>; declare const def: CodeKeywordDefinition; export default def;