#schema
6 pages tagged schema.
JSON
Text-based data interchange format derived from JavaScript object literals and standardised as RFC 8259 / ECMA-404.
zod
Package-level reference for zod on npm — install variants, v4 breaking changes (looseObject, mini build), companion packages, and alternatives.
valibot
Package-level reference for valibot — schemas, transforms, pipes, branding, safeParse, and the tree-shaking advantage over zod.
mongoose
Package-level reference for mongoose on npm — schemas, models, transactions, populate, indexes, and 7-to-8 migration.
Zod
TypeScript-first runtime validation library. Define schemas, validate inputs, infer static types — works at API boundaries, env config, forms, and tRPC.
Structured Output
Techniques for reliable structured generation — JSON mode, schema-constrained decoding, function/tool calls as output, and validator pairing with Pydantic or Zod.