UNPKG

extended-dynamic-forms

Version:

Extended React JSON Schema Form (RJSF) v6 with custom components, widgets, templates, layouts, and form events

25 lines (23 loc) 694 B
import { RJSFSchema } from '@rjsf/utils'; export declare const schemaUtils: { /** * Get required fields from schema */ getRequiredFields: (schema: RJSFSchema) => string[]; /** * Check if a field is required */ isFieldRequired: (schema: RJSFSchema, fieldName: string) => boolean; /** * Get field schema by path */ getFieldSchema: (schema: RJSFSchema, path: string) => RJSFSchema | undefined; /** * Merge two schemas */ mergeSchemas: (schema1: RJSFSchema, schema2: RJSFSchema) => RJSFSchema; /** * Get all field paths from schema */ getAllFieldPaths: (schema: RJSFSchema, prefix?: string) => string[]; };