Zod in 2026 — TypeScript Validation That Earns Its Keep
Practical Zod patterns: schemas as the source of truth, type inference, transforms, branded types, error formatting, and where to reach for alternatives.
Practical Zod patterns: schemas as the source of truth, type inference, transforms, branded types, error formatting, and where to reach for alternatives.
Picking a Python validation library: Pydantic v2 (default), msgspec (10× faster, leaner), attrs (no validation; pure dataclass replacement). When each wins.
Picking a TS validation library: Zod (default), Valibot (smaller bundle), Effect Schema (FP-flavored). Bundle size, perf, ergonomics, and migration paths.
Pydantic v2 in production. Model design, validators, serializers, settings, the strict mode, performance characteristics, FastAPI / SQLAlchemy patterns, and the migrations from v1.