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) 634 B
import { JsonSchemaScanner } from '@winglet/json-schema/scanner'; import type { JsonSchema, JsonSchemaWithRef } from '../../../../types'; /** * Creates a JSON Schema scanner configured for resolving $ref references * * @param referenceTable - Map containing reference keys and their resolved schemas * @param maxDepth - Maximum depth for reference resolution to prevent infinite recursion * @returns JsonSchemaScanner instance configured with reference resolution options */ export declare const getResolveSchemaScanner: (referenceTable: Map<string, JsonSchema>, maxDepth: number) => JsonSchemaScanner<JsonSchemaWithRef, void>;