This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Commit 12e716c
committed
docs(packaging): clarify merge() array and record-delete behavior
Document two FileHelper.merge() semantics that are easy to get wrong:
arrays (and primitives) are replaced wholesale, not merged element-wise;
and passing `undefined` to delete one entry of a typed z.record(...).catch()
fails validation and the .catch() wipes the whole record, not just that
entry. Adds an "Arrays Are Replaced, Not Merged" section plus a warning in
the File Models page.1 parent 74933f6 commit 12e716c
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
439 | 461 | | |
440 | 462 | | |
441 | 463 | | |
| |||
0 commit comments