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-openapi] use https://github.com/samchungy/zod-openapi instead of https://github.com/asteasolutions/zod-to-openapi #881

Open
valerii15298 opened this issue Dec 11, 2024 · 1 comment

Comments

@valerii15298
Copy link

valerii15298 commented Dec 11, 2024

Middleware zod-openapi uses https://github.com/asteasolutions/zod-to-openapi which has quite a few drawbacks, you can check comparison here: https://github.com/samchungy/zod-openapi/blob/master/docs/comparisons.md#asteasolutionszod-to-openapi.

I would suggest using https://github.com/samchungy/zod-openapi since it has more features and easier setup. For example it works with zod lazy without any additional workarounds.

@CPlusPatch
Copy link

I second this, my codebase has to use lazy and recursive Zod schemas, which doesn't work correctly with this middleware.

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

2 participants