Skip to content
Chris Michael edited this page Sep 29, 2026 · 3 revisions

Pudu

Pudu Validator

pudu-lang-validator is a typed validation package for Pudu, written in Pudu. You describe rules for a record with ordinary Pudu functions, run them against a value, and get back an ordered list of failures. Each failure carries a property path, a message, a code, a severity, and application state.

This wiki documents the 0.1.1 API. Every program in it was checked with pudu check and run with pudu run against @chrismichaelps/pudu-lang-validator@0.1.1. The versioned design notes live in the repository wiki/ directory.

Reading the book

The chapters follow the order in which you meet the API. New readers should begin with Getting Started, then continue through Parts I–III. The Reference Index lists every module on one page.

Part I — First steps

  1. Getting Started
  2. Rules And Validators
  3. Built In Checks

Part II — Real data

  1. Nested Data
  2. Conditions And Sets
  3. Messages And Metadata

Part III — Boundaries

  1. Async Validation
  2. Testing Results
  3. Http Responses

The Worked Programs appendix collects the complete modules behind every chapter, ready to run.

Repository

Clone this wiki locally