diff --git a/.changeset/12135-protocol-correct-fence-data.md b/.changeset/12135-protocol-correct-fence-data.md new file mode 100644 index 0000000000..a9002ad027 --- /dev/null +++ b/.changeset/12135-protocol-correct-fence-data.md @@ -0,0 +1,4 @@ +--- +--- + +No package released: one teaching fence in the published `skills/objectui` bundle, which ships through `npx skills add` and sits in no package's `files[]`. The "CORRECT" `data-table` example under "Rule: No Schema Property Invention" in `skills/objectui/rules/protocol.md` gains the inline `data` array `DataTableSchema` declares as required, so the node the skill tells an agent to copy is one both authoring faces accept instead of one `objectui validate` refuses with `data: Invalid input: expected array, received undefined` (objectui#12135). diff --git a/skills/objectui/rules/protocol.md b/skills/objectui/rules/protocol.md index d314286a83..ffd2a86080 100644 --- a/skills/objectui/rules/protocol.md +++ b/skills/objectui/rules/protocol.md @@ -184,7 +184,8 @@ key under `props` never reaches a `ui:*` / `page:*` renderer at all. ```jsonc { "type": "data-table", - "columns": [{ "header": "Name", "accessorKey": "name" }] // ✅ declared by DataTableSchema, read off the node + "columns": [{ "header": "Name", "accessorKey": "name" }], // ✅ declared by DataTableSchema, read off the node + "data": [{ "name": "Ada Lovelace" }] // ✅ required by DataTableSchema: the rows live inline on the node } ```