@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
10 lines (9 loc) • 463 B
TypeScript
import type { JsonSchema } from '../../../types';
/**
* Preprocesses a JSON Schema by applying transformations for virtual schemas and oneOf constructs.
* Uses a JsonSchemaScanner to traverse the schema tree and apply mutations where needed.
*
* @param schema - The JSON Schema to preprocess
* @returns The preprocessed schema with all transformations applied
*/
export declare const preprocessSchema: <Schema extends JsonSchema>(schema: Schema) => Schema;