2 ms·
Yes, I would have pointed to Zod. There are a lot of options in the space, but I think there’s still room for improvement. My (vaporware, but I’ve built someth
by eyelidlessness 5y ago
Yes, I would have pointed to Zod. There are a lot of options in the space, but I think there’s still room for improvement.
My (vaporware, but I’ve built something similar before on top of io-ts) project would provide a similar API, but with base types built from JSON Schema definitions, and automatically generate docs.
There are also opportunities to significantly improve runtime performance (at the expense of build time) by avoiding unnecessary parsing where statically checked code paths are already valid, eg naive multiple parse steps.