Closed wenerme closed 1 year ago
Not hard to support zod
, but no plan to do it.
As you can see from the zod
repo, there're hundreds of unresolved issues debating bugs. The zod maintainers don't seem to care about fixing these bugs either. For example, zod
always returns true
when complicate type comes, whether it is exact or not. If typia
supports such mis-validating zod
, I don't think I can handle zod
-related bug reports.
From the standpoint of developing typia
and nestia
in my spare time, I don't want to support unstable libraries like zod
. Sorry for that cannot be helpful.
Fair enough, I want to use trpc openapi, but only support zod.
On Thu, May 11, 2023 at 6:07 PM Jeongho Nam @.***> wrote:
Closed #625 https://github.com/samchon/typia/issues/625 as not planned.
— Reply to this email directly, view it on GitHub https://github.com/samchon/typia/issues/625#event-9220527690, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANR4O5HIGTUWPK4TAHTT43XFS265ANCNFSM6AAAAAAX54AAAU . You are receiving this because you authored the thread.Message ID: @.***>
--
by wener https://wener.me/
@wenerme Possible to use typia
:
trpc openapi require zod https://github.com/jlalmes/trpc-openapi/
nestia require ts patch, I use nextjs or swc+esbuild, typia can use manual generate
On Fri, May 12, 2023 at 12:43 AM Jeongho Nam @.***> wrote:
Ah got it, replace to nestia https://nestia.io/docs/, or just use zod. No way to support it.
— Reply to this email directly, view it on GitHub https://github.com/samchon/typia/issues/625#issuecomment-1544326375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANR4OY4UVDL6XEZSHOT37TXFUJMLANCNFSM6AAAAAAX54AAAU . You are receiving this because you were mentioned.Message ID: @.***>
--
by wener https://wener.me/
OK, thanks for feedback
Feature Request
Description
Typia is an incredibly useful tool for generating code, but it would be even more powerful if it could support the Zod library for data validation. While Typia has its own built-in validation capabilities, Zod is widely used by the JavaScript community and has become a sort of standard for data validation. It would be great if Typia could generate Zod schemas, making it even more versatile for developers.
Suggested Solution