Skip to content

Commit 1492fc3

Browse files
committed
fix(examples,tooling): migrate the one authored string sort fixture and re-key the moved doc-example ledger row
`examples/schema-catalog/src/schemas/plugin-view/object-view-list.json` authored `table.sort: "name asc"` — the retired clause. `pnpm check` reported it by name ("did not validate as an ObjectUI schema"), and `objectui validate` gave the reason: `table -> sort` expected array, received string. Migrated to `[{ "field": "name", "order": "asc" }]`; the warning count moved 4 -> 3, which is the firing control that the fixed file is the one that moved. `scripts/check-doc-example-types.mjs`'s ledger is keyed by FILE:LINE, and the `objectql.ts` edits shifted `ObjectFormSchema`'s example block 1604 -> 1607. Re-keyed; `scripts/__tests__/check-doc-example-types.test.ts` is green again. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w
1 parent 89fe39f commit 1492fc3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/schema-catalog/src/schemas/plugin-view/object-view-list.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"searchableFields": ["name", "email", "department"],
1212
"table": {
1313
"columns": ["name", "email", "role", "department", "status"],
14-
"sort": "name asc",
14+
"sort": [{ "field": "name", "order": "asc" }],
1515
"pagination": { "pageSize": 5 }
1616
}
1717
}

‎scripts/check-doc-example-types.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ export const UNGATED_EXAMPLES = {
978978
reason:
979979
'usage fragment: references `save`, `storedPage`, which the example never declares',
980980
},
981-
'packages/types/src/objectql.ts:1604 ObjectFormSchema': {
981+
'packages/types/src/objectql.ts:1607 ObjectFormSchema': {
982982
card: null,
983983
codes: [1005, 1109],
984984
reason:

0 commit comments

Comments
 (0)