hectoday
DocsCoursesChangelog GitHub
DocsCoursesChangelog GitHub

Access Required

Enter your access code to view courses.

Invalid code

← All courses

Validation for beginners with Zod

Data from the outside world can't be trusted. This course teaches you how to validate every piece of it using Zod. Strings, numbers, objects, arrays, transforms, refinements, schema composition, error formatting, and TypeScript type inference.

Beginner ~5 hours

What is Zod

  1. The problem with untyped data
  2. Your first schema
  3. Project setup

Primitive types

  1. Strings
  2. Numbers
  3. Booleans, dates, and literals

Objects and arrays

  1. Objects
  2. Nested objects
  3. Arrays
  4. Unions and discriminated unions

Transforms and refinements

  1. Transforms
  2. Refinements
  3. Preprocessing and coercion

Composing schemas

  1. Pick, omit, and extend
  2. Merge and intersection
  3. Reusable schemas

Zod in practice

  1. Validating API requests
  2. Error formatting
  3. Inferring TypeScript types
  4. Cheatsheet and capstone

© 2026 hectoday. All rights reserved.