UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

11 lines (10 loc) 593 B
import type { JsonSchema } from '../../../types'; /** * Processes a JSON Schema containing an `allOf` property by merging all schemas in the array * into a single unified schema. Validates type compatibility and throws errors for incompatible types. * * @param schema - The JSON Schema to process that may contain an `allOf` property * @returns The processed schema with all `allOf` schemas merged into the base schema * @throws {JsonSchemaError} When allOf schema contains incompatible type redefinitions */ export declare const processAllOfSchema: (schema: JsonSchema) => JsonSchema;