-
Notifications
You must be signed in to change notification settings - Fork 0
Worked Programs
Chris Michael edited this page Sep 29, 2026
·
6 revisions
Every chapter's program in one place. Each module below is complete: save it as src/<Name>.pudu in a project with @chrismichaelps/pudu-lang-validator@0.1.1 installed, then pudu check and pudu run it. All twenty-five were verified against 0.1.1.
| Program | Chapter | What it shows |
|---|---|---|
Ex01First |
Getting Started | First validator, result shape |
Ex02Rules |
Rules And Validators | Predicates, root-aware checks, messages |
Ex03Checks |
Built In Checks | One validator across every check family |
Ex04Nested |
Nested Data | Child validators, collections, paths |
Ex05Sets |
Conditions And Sets | Conditions, rule sets, prevalidation |
Ex06Messages |
Messages And Metadata | Arguments, localization |
Ex07Async |
Async Validation | Awaited checks, lifted sync rules, selection |
Ex08Testing |
Testing Results | Failure queries and assertions |
Ex09Http |
Http Responses | Report, problem, and 422 response |
Ex10Context |
Rules And Validators | Context checks, computed metadata, latest-only conditions |
Ex11Advanced |
Conditions And Sets | Whole-record checks, dependent rules, built-rule conditions |
Ex12Selection |
Nested Data | Path relations, property and rule-set selection |
Ex13Result |
Testing Results | Result queries, absence filters, rebuilding results |
Ex14AsyncMore |
Async Validation | Unfiltered collections, awaited conditions, custom async checks |
Ex15ChecksExtra |
Built In Checks | Shaped text, presence, cross-property checks, optional children |
Ex16Catalog |
Messages And Metadata | Direct catalog lookups with fallback |
Ex17Bounds |
Built In Checks | Exact-boundary comparisons and element chains |
Ex18Args |
Messages And Metadata | Captured, fixed, and computed message arguments |
Ex19Unless |
Conditions And Sets | Unless-variants and running every rule set |
Ex20TestFilters |
Testing Results | Message, severity, and state filters with mirrors |
Ex21AsyncDecor |
Async Validation | Context-aware collections and computed metadata |
Ex22Collection |
Nested Data | Filtered and custom-indexed collection paths |
Ex23Ordering |
Built In Checks | Ordering bounds and sibling comparisons |
Ex24AsyncChild |
Async Validation | Nested async children and named async sets |
Ex25AsyncPreflight |
Async Validation | Awaited gates before any async rule |
Run one:
pudu check src/Ex04Nested.pudu
pudu run src/Ex04Nested.pudufailures=2 first=address.street