2 ms·
Adding to the pile of similar approaches, there's TypeBox [1] which uses JSON Schema as an intermediate artifact (validation can happen with ajv or other libs),
by franky47 7y ago
Adding to the pile of similar approaches, there's TypeBox [1] which uses JSON Schema as an intermediate artifact (validation can happen with ajv or other libs), and extracts static types for TypeScript.
Having the JSON Schema intermediate is useful when using Fastify [2], so that request validation can happen with less boilerplate.
[1] https://github.com/sinclairzx81/typebox https://github.com/sinclairzx81/typebox
[2] https://www.fastify.io/docs/latest/Validation-and-Serialization/ https://www.fastify.io/docs/latest/Validation-and-Serializat...