Commit 4dfdcc3
The zod mirror of `ListViewSchema` restated a pre-objectstack#8010 shape for
`exportOptions` — `'pdf'` accepted in both spellings, no `streaming`, a
non-strict object — while the installed `@objectstack/spec@17.2.0` refuses
`'pdf'` with an `os migrate meta --from 16` prescription, is strict on the
object form and declares `streaming`. Because `ListViewInferred` is
`z.input` of the mirror, the `ListViewSchema` type the ListView renderer is
written against disagreed with its sibling `ObjectGridSchema['exportOptions']`
and the renderer read `streaming` through `as any`.
The member is now `SpecListViewSchema.shape.exportOptions` by reference: the
spec's two-branch union (bare array lifted to `{ formats }` at parse, strict
five-key object), with the spec's own description. `ListViewSchema['exportOptions']`
is measured to be exactly `ListViewExportFormat[] | ListViewExportOptions`.
ListView: the two `as any` `streaming` reads and the `'pdf'` in the fold's cast
are deleted; they compile without annotation. The bare-array fold stays —
nothing on the render path parses, so a stored array reaches the renderer
un-lifted (objectui#4535 item 4).
The parity pin is widened to the mirror: identity with the spec field, the four
verdicts the card names (lift / refuse pdf / refuse sixth key / accept
streaming with the value surviving), the TS face pins, and a neighbouring
member as control. One fixture that authored `'pdf'` under the ListView type
(`p1-spec-alignment.test.ts`) drops it — the test is about the object form, not
the value.
Claude-Session: https://claude.ai/code/session_01BAZFhALsQsGqxui8sNqM8s
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2760075 commit 4dfdcc3
7 files changed
Lines changed: 288 additions & 37 deletions
File tree
- .changeset
- packages
- plugin-list/src
- types/src
- __tests__
- zod
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
1304 | | - | |
| 1304 | + | |
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
| |||
1321 | 1321 | | |
1322 | 1322 | | |
1323 | 1323 | | |
1324 | | - | |
| 1324 | + | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
| |||
2973 | 2973 | | |
2974 | 2974 | | |
2975 | 2975 | | |
2976 | | - | |
| 2976 | + | |
2977 | 2977 | | |
2978 | 2978 | | |
2979 | 2979 | | |
| |||
0 commit comments