Introducing ✨ Standard JSON Schema ✨
It's a sister spec to Standard Schema that provides a common interface for any entity that can be converted to JSON Schema
BIG DAY. Introducing Standard Schema 1.0!
It's a specification for a "common interface" to be implemented by all TypeScript schema libraries, written collaboratively by the the creators of Zod (👋), Valibot, and ArkType to promote interoperability.
https://t.co/giSGwnIDld
For people using @colinhacks 's zod, the good news is that it's integrated in the library.
Simply use branded types and infer. I encourage you to read their doc on branded types, it's brilliant!
https://t.co/ISKuJNEQik
I'd heard the "parse, don't validate" mantra before but just recently tracked down @lexi_lambda's original post and it finally clicked. Honestly a relief have such a concrete explanation of why using tools like @zodtypes and @pydantic "feels" so right. https://t.co/lEMYZk8Uwa
I shipped a library!
zod-fetch gives you a TINY wrapper to help you make any fetch function type and runtime-safe.
If you've ever been intimidated by trying to hack together fetch and Zod, this library should be perfect.
@DavidKPiano@kentcdodds We built schema based forms using @HookForm + @zodtypes + form components we created + custom components can be added.
We can manually compose forms, or generate from JSON and it really saves so much time (and so many calls to useState)