Replies: 1 comment 2 replies
-
I'm casting my vote towards Zod because, of the 3 choices here I'm most comfortable with its API and it's the most popular of the bunch. Also I "talked with" @colinhacks and he's very nice (I made a docs correction PR to Zod and he said thanks and approved it) @Hajbo @aruaycodes if you feel a different option aligns better with the goals of Bedstack, vote away. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Unfortunately, ElysiaJS is locked to a single validator - TypeBox.
Sadly it also doesn't abide by Standard Schema so we cannot freely change validators with it.
Some developers might prefer other validators like Zod, ArkType etc. so we should discuss which validator to use now that TypeBox creator, sinclairzx81 created an adapter for converting Zod and Valibot to TypeBox.
Other than keeping TypeBox I will only add Valibot and Zod to this poll because that's what's supported in the adapter, TypeMap.
If we want to use something that's not in TypeMap now, we should either:
If your vote is for something that is not listed here, please specify below 👇
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions