示例
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
案例
- 目标
- Restore .catch() fallback and preprocess evaluation for absent keys in z.object schemas fixed in zod 4.4.3 HOW
- 包
- zod 4.4.3
- 环境
- node
- 创建时间
- 2026-08-16T04:51:32Z
契约
- 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
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/schemas.mjs
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9