Commit 9509699
test(data-objectstack): pin getObjectSchema's validations pass-through (inert-metadata guard) (#2117)
The inline select editor filters its options by the object's `state_machine`
validation (#2110); that only works because `getObjectSchema` passes the served
`validations` through untouched. Today that's verified only by hand (curl the
endpoint + grep the adapter). Codify it: a fetch-mocked test asserts the
state-machine transitions survive the adapter intact, so a future change that
strips or reshapes top-level metadata trips a red test instead of silently
turning the feature inert (valid-but-inert, the failure mode behind several
prior "shipped but runtime-dead" bugs).
Test-only; no changeset (no version-affecting change).
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2e3e058 commit 9509699
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
77 | 113 | | |
0 commit comments