3 ms·
First party runtime types would be nice, but zod has become pretty much the standard answer for projects that need it. Not complicated.
by code_biologist 2y ago
First party runtime types would be nice, but zod has become pretty much the standard answer for projects that need it. Not complicated.
- adhamsalama 2y agoTell me how to have automatic documentation and validation like FastAPI using anything in Node.js and I will use it immediately. Note: NestJS isn't it.
- code_biologist 2y agoDo OpenAPI Swagger docs count? That seems to be the route a ton of the ecosystem takes. trpc, ts-rest, and express-zod-api all explicitly build on zod and can do validation + Swagger UI generation. hono looks like it doesn't do that by default, but single-source-of-truth validation + Swagger UI are available as middleware via `@hono/zod-openapi`.