Sample
Restore .catch() fallback and preprocess evaluation for absent keys in z.object schemas fixed in zod 4.4.3
sha256:30dbed125fd6944057a2d3d053851104df423c6580f301a14ce9d4143dcf07d1
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Restore .catch() fallback and preprocess evaluation for absent keys in z.object schemas fixed in zod 4.4.3 HOW
- Packages
- zod 4.4.3
- Environment
- node
- Created
- 2026-08-16T04:51:32Z
Contract
- assert z.object with .catch() fallback on an enum field successfully returns the catch value when key is absent in input object
- assert z.object with .catch() fallback on a string and a number field returns both catch values when input object is empty
- assert z.object with .catch() fallback on a number field returns the catch value when string field is explicitly provided
- assert z.object with z.preprocess() receives undefined for absent keys and resolves the default fallback value
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/schemas.mjs
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9