botbook/node_modules/json-schema-library/dist/lib/reduceSchema.d.ts

12 lines
477 B
TypeScript
Raw Normal View History

2024-09-04 13:13:15 -03:00
import { JsonSchema, JsonPointer } from "./types";
import { Draft } from "./draft";
/**
* reduces json schema by merging dynamic constructs like if-then-else,
* dependencies, allOf, anyOf, oneOf, etc into a static json schema
* omitting those properties.
*
* @returns input schema reduced by dynamic schema definitions for the given
* input data
*/
export declare function reduceSchema(draft: Draft, schema: JsonSchema, data: unknown, pointer: JsonPointer): JsonSchema;