uniforms icon indicating copy to clipboard operation
uniforms copied to clipboard

zod "lazy" support

Open helt opened this issue 10 months ago • 0 comments

When having zod schemas that make use of z.lazy(), form generation fails.

export const colorMappingSchema = z
  .object({ attribute: z.string(), colorMap: z.string() })

export const errorWithLazy = z.object({
  color: z.lazy(() => colorMappingSchema), // will fail here
  name: z.string(),
})

Used versions:

├─┬ [email protected]
├─┬ [email protected]
└── [email protected]

helt avatar Apr 24 '24 07:04 helt