diff --git a/packages/@core/ui-kit/form-ui/src/use-form-context.ts b/packages/@core/ui-kit/form-ui/src/use-form-context.ts index 48cd1d1f2..a52c54a72 100644 --- a/packages/@core/ui-kit/form-ui/src/use-form-context.ts +++ b/packages/@core/ui-kit/form-ui/src/use-form-context.ts @@ -34,6 +34,10 @@ export const [injectFormProps, provideFormProps] = export const [injectComponentRefMap, provideComponentRefMap] = createContext>('ComponentRefMap'); +/** + * Rebuild the schema used by zod-defaults, replacing native format nodes that + * zod-defaults does not recognise while retaining supported wrappers. + */ function normalizeSchemaForDefaults(rule: ZodType): ZodType { const rawRule = toRaw(rule) as any;