Closed marcus-sa closed 2 years ago
Hey @marcus-sa ! Thank you for submitting the issue, sorry for closing it out prior to commenting, I'm testing this feature on my mobile's github app 😅
That said we don't plan to support custom serializers in the foreseeable feature - which may be the next major release.
It doesn't seem to be too hard to do it so we will keep an eye on "Type" and this sort of request tho.
Is there any specific reason you'd use one over another? Do you have any API suggestions?
Cheers
@gustavoguichard Zod is slow and the DX is bad, whereas with Deepkit Type we can use pure TypeScript classes/interfaces & define constraints using nothing but types. It also has the best performance for schema validation, serialization & deseralization of any library available.
+1
Hey @marcus-sa and @FlurryNight , just an update: we released v4 which is now called composable-functions and should work just fine with any custom parser. Zod is no longer a dependency.
We prepared some instructions and an example which uses @arktypeio/arktype : https://github.com/seasonedcc/composable-functions/blob/main/examples/arktype/README.md
Hey @marcus-sa and @FlurryNight , just an update: we released v4 which is now called composable-functions and should work just fine with any custom parser. Zod is no longer a dependency.
We prepared some instructions and an example which uses @arktypeio/arktype : https://github.com/seasonedcc/composable-functions/blob/main/examples/arktype/README.md
Hey, awesome. nice work Thanks for the info
Have you considered allowing developers to use custom schema validators? I'd much rather use https://deepkit.io/library/type instead of https://zod.dev