Repository navigation
Commit 8567cdb
committed
docs(api): zodIssuesToFields 的条目数不再等于 zod issue 数 (#5014)
联合失配现在除了联合自身那条,还会追加解释它的分支条目,所以
`fields.length` 要读作「字段错误条数」而不是「zod issue 条数」。
这段示例正是对外推荐 `zodIssuesToFields` 的地方。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FTszibd6C8sUCCZnM4VcrL1 parent fcd20da commit 8567cdb
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
179 | 185 | | |
180 | 186 | | |
181 | 187 | | |
| |||
0 commit comments