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 8565c18
Browse filesBrowse the repository at this point in the historyBrowse files
// ⛔ Do not "normalise" this to `idField` to match its neighbours; the
145
154
// reachability test in `authoring-key-lint.test.ts` fails if you do.
146
155
id_field: {why: '`id_field` was never a FieldSchema key: a lookup stores the referenced record\'s id, and which field holds that value is not an authored per-field choice — the picker resolves record identity itself. Use `displayField` to change which field is SHOWN as a candidate\'s label, and a seed dataset\'s `externalId` to author references by a portable natural key. The live `idField` is the one on an `inlineColumns` entry — the GridColumn mirror in `field.zod.ts`, which is a DIFFERENT schema.'},
156
+
// ── A typed list declared on an embedded-JSON field (ruling 6386744473) ──
157
+
// An object-level `composite` / `repeater` is untyped JSON BY RULING: no
158
+
// sub-field member is added, and a list that needs typed columns is a child
159
+
// object. These are the spellings an author reaches for when they expect one
160
+
// (the three the ruling names; objectui's structured cell documents `fields` /
161
+
// `subFields` as refused). Without a row the parse names the key and nothing
162
+
// else, so the author learns the key is wrong but not where the list goes.
163
+
// `@objectstack/lint`'s `field/embedded-sub-fields` says the same on the doors
164
+
// that never parse. A form view's `fields` sub-rows are a different schema.
165
+
fields: {why: `\`fields\` is not a field key: a field declares no sub-fields. ${EMBEDDED_JSON_TYPED_LIST}`},
166
+
subFields: {why: `\`subFields\` is not a field key: a field declares no sub-fields. ${EMBEDDED_JSON_TYPED_LIST}`},
167
+
columns: {why: `\`columns\` is not a field key. A lookup's picker columns are \`lookupColumns\`; a \`master_detail\` field's related-list columns are \`relatedListColumns\` and its inline-grid columns \`inlineColumns\`. ${EMBEDDED_JSON_TYPED_LIST}`},
// Embedded structured values (stored as JSON on the parent row — no separate table / FK).
96
+
// On an OBJECT field, `composite` / `repeater` are UNTYPED JSON containers of CMS lineage
97
+
// (≈ Strapi component / ACF group / ACF repeater): `FieldSchema` declares no sub-field
98
+
// member, so nothing types, labels, validates or addresses the inner keys or rows.
99
+
// A list that needs typed columns is a CHILD OBJECT whose `master_detail` field points
100
+
// back at the parent, shown on the record as an inline related list (ruling 6386744473).
101
+
// A form view's `fields` sub-rows (`ui/view.zod.ts`) are a different surface.
102
+
'composite',// Single embedded JSON object, untyped — no declared sub-fields
103
+
'repeater',// Array of embedded JSON objects, untyped — no declared sub-fields or columns
98
104
'record',// Name-keyed map of embedded sub-objects (Record<string, SubObject>). Insertion order = display order. Used for collections where each item has a stable machine name (e.g. object.fields). See ADR-0007.
0 commit comments