resource · evergreen

colinhacks / zod

TypeScript-first schema validation with static type inference.

github.com/colinhacks/zod · TypeScript

Validation at the boundaries, with the types falling out of the schema rather than being maintained alongside it. The same schema validates the request and describes the tool to the model — which is how I ended up writing zod-2-jsonSchema.

#validation #types

See this note on the whiteboard →