Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zod "lazy" support #1327

Open
helt opened this issue Apr 24, 2024 · 0 comments
Open

zod "lazy" support #1327

helt opened this issue Apr 24, 2024 · 0 comments
Labels
Bridge: Zod Affects the uniforms-bridge-zod package

Comments

@helt
Copy link

helt commented Apr 24, 2024

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:

├─┬ uniforms-bridge-zod@4.0.0-alpha.5
├─┬ uniforms-mui@4.0.0-alpha.5
└── uniforms@4.0.0-alpha.5
@github-project-automation github-project-automation bot moved this to Needs triage in Open Source May 10, 2024
@piotrpospiech piotrpospiech added the Bridge: Zod Affects the uniforms-bridge-zod package label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bridge: Zod Affects the uniforms-bridge-zod package
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants