botbook/node_modules/json-schema-library/dist/lib/features/if.d.ts
Rodrigo Rodriguez 6ae15fe3e5 Updated.
2024-09-04 13:13:15 -03:00

18 lines
572 B
TypeScript

/**
* @draft-07
*/
import { JsonSchema, JsonValidator } from "../types";
import { Draft } from "../draft";
/**
* returns if-then-else as a json schema. does not merge with input
* json schema. you probably will need to do so to correctly resolve
* references.
*
* @returns json schema defined by if-then-else or undefined
*/
export declare function resolveIfSchema(draft: Draft, schema: JsonSchema, data: unknown): JsonSchema | undefined;
/**
* @returns validation result of it-then-else schema
*/
declare const validateIf: JsonValidator;
export { validateIf };