UNPKG

json-schema-library

Version:

Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation

17 lines (16 loc) 787 B
import { Keyword, JsonSchemaReducerParams } from "../Keyword"; import { SchemaNode } from "../types"; export declare const oneOfKeyword: Keyword; export declare const oneOfFuzzyKeyword: Keyword; export declare function parseOneOf(node: SchemaNode): void; export declare function reduceOneOfDeclarator({ node, data, pointer, path }: JsonSchemaReducerParams): SchemaNode | import("../types").JsonError; /** * Selects and returns a oneOf schema for the given data * * @param draft * @param data * @param [schema] - current json schema containing property oneOf * @param [pointer] - json pointer to data * @return oneOf schema or an error */ export declare function reduceOneOfFuzzy({ node, data, pointer, path }: JsonSchemaReducerParams): SchemaNode | import("../types").JsonError;