You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e0d5a2b
Browse filesBrowse the repository at this point in the historyBrowse files
test(cli): re-point the union specimen at a door that is still a z.union
`packages/cli/test/format-zod-union.test.ts`'s live specimen parsed
`views[].list.sort`, which stopped being a `z.union` when #17053 retired its
bare-string arm: the union collapsed to its one surviving member and the
specimen fell straight out of a plain `z.array(...)` as two ordinary issues,
neither of them `invalid_union`. Two of the three tests in
`[#5341] \`os validate\` delivers a union branch prescription` went red on the
issue count, and the third — the terminal one — kept passing on the ordinary
non-union path, so the block's own subject was unguarded.
Re-point the specimen at `views[].list.gantt.tooltipFields`, which is still
`z.union([z.string(), <strict entry>])`, whose strict arm carries the curated
alias set `name → field` / `text → label`, and which is reachable from
`ObjectStackDefinitionSchema` — the schema `os validate` parses. Adapting the
assertions to the collapsed shape was the alternative and is the regression:
it greens the file with its subject untested.
The terminal test also gains the assertion that would have caught this: the
union's own `invalid_union: Invalid input` verdict line must print alongside
the prescription, so the prescription is proven to have arrived from behind a
union rather than on the ordinary path.
No spec change: #17914 is the ruled end-state and is untouched.
Claude-Session: https://claude.ai/code/session_01TSf4DV7ziu4V5j73e46b7c
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments