@squiz/json-schema-library
Version:
Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation
11 lines (10 loc) • 498 B
TypeScript
import { JSONTypeValidator } from "../../types";
/**
* @todo: type is also a keyword, as is properties, items, etc
*
* An instance has one of six primitive types (http://json-schema.org/latest/json-schema-core.html#rfc.section.4.2)
* or seven in case of ajv https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#type
* 1 null, 2 boolean, 3 object, 4 array, 5 number, 6 string (7 integer)
*/
declare const validationType: Record<string, JSONTypeValidator>;
export default validationType;