Commit 62fbaed
committed
fix(spec): keep liveness gate + api-surface green for the
Two CI gates broke on the #3095 change that maps `view` to a union:
- Spec property liveness: `check-liveness.mts` walked each metadata type's
top-level OBJECT shape; a union has none, so it threw "view is not an object
schema". Teach `shapeOf` to resolve a union to its first object-typed member
— the canonical authorable container (list/form/listViews/formViews) the
ledger governs. Discriminated-union members (ViewItem) are skipped; their
inner config is the same ListView/FormView surface already governed under the
container's list/form children.
- API-surface snapshot: record the two intended new public exports
(`ViewMetadata` type, `ViewMetadataSchema` const) via gen:api-surface.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LFmMsWLC3CVULh3Ke7rUddview union schema1 parent 046b58d commit 62fbaed
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3471 | 3471 | | |
3472 | 3472 | | |
3473 | 3473 | | |
| 3474 | + | |
| 3475 | + | |
3474 | 3476 | | |
3475 | 3477 | | |
3476 | 3478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
92 | 106 | | |
93 | 107 | | |
94 | 108 | | |
| |||
0 commit comments