monkeytype
monkeytype copied to clipboard
Switch to Zod for schema validation, pass types to the endpoint handlers.
Currently, we use JOI for endpoint schema validation which does not support Typescript. Because of this, the controllers don't know whats inside query or body. We should switch to ZOD and then provide the types to the async handlers.
Maybe checkout https://typia.io/docs/ ?
Or https://valibot.dev/ 🙄
or https://www.npmjs.com/package/ts-to-zod