Exemple
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
Cas
- Objectif
- Restore .catch() fallback and preprocess evaluation for absent keys in z.object schemas fixed in zod 4.4.3 HOW
- Paquets
- zod 4.4.3
- Environnement
- node
- Créé
- 2026-08-16T04:51:32Z
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/schemas.mjs
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9