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 #247

Open
121lipe121 opened this issue Jul 10, 2024 · 4 comments
Open

zod lazy #247

121lipe121 opened this issue Jul 10, 2024 · 4 comments

Comments

@121lipe121
Copy link

is there any chance or plan for supporting zod lazy method? we really need it, we've dropped an from using it for that

@leognmotta
Copy link

I also need this really hard, would it be difficult to implement?

@setcooki
Copy link

i second that

@FaisalAl-Tameemi
Copy link

Same here 👍

The use case:

  • Using Prisma as an ORM to define DB models
  • Using Zod to validate user requests
  • Using zod-prisma-types package to auto generate Zod types based on Prisma schemas

Issue:

The zod-prisma-types package uses recursive schemas and .lazy and unable to include those generated schemas in the OpenApi registry

@AGalabov
Copy link
Collaborator

Please see my comment here

In general we are open to implement it, however it would presumably require some overhaul of our code base. Considering the amount of free time that we have to maintain this library I am not sure when that could come. If any of you is open to the idea, you can try and open up a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants