Commit 2d2e6f0
* fix(spec): name `reference`, not the rejected `referenceTo` alias, in the public-picker prose
`FormFieldPublicPickerSchema.object` told authors the picker target resolves
from `referenceTo` on the parent object's field definition. `referenceTo` is
not a key `FieldSchema` accepts — it is a rejected alias listed only so
`strictUnknownKeyError` can offer a rename hint, so an author who followed the
sentence had their whole object metadata refused at parse.
The `.describe()` half is the sharper one: it is published into the generated
JSON Schema and the reference docs, so it reached authors (and AI authors
reading the generated schema as ground truth) who never open this file.
Purely textual. Nothing about the runtime resolution changes, and this takes no
position on the REST route's legacy-spelling chain — the sentence is wrong under
either outcome, because a conformant authored field carries `reference` in both
worlds.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LpRNHxWZgSUgVnFT9mQQo4
* docs(spec): regenerate the ui/view reference for the corrected picker prose, add changeset
`check:generated` proved exactly one artifact stale after the describe change:
`content/docs/references/ui/view.mdx`. Regenerated with the repo's own
`pnpm --filter @objectstack/spec gen:docs`, never by hand.
The false sentence rendered TWICE on that page — the picker schema is emitted
both nested under `FormField` and standalone as `FormFieldPublicPicker` — which
is the published half of the defect the card names.
Changeset is a `@objectstack/spec` patch, matching in-repo precedent for
describe-string corrections that regenerate a references page.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LpRNHxWZgSUgVnFT9mQQo4
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent bfaada0 commit 2d2e6f0
3 files changed
Lines changed: 43 additions & 6 deletions
File tree
- .changeset
- content/docs/references/ui
- packages/spec/src/ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1907 | 1907 | | |
1908 | 1908 | | |
1909 | 1909 | | |
1910 | | - | |
1911 | | - | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
1912 | 1917 | | |
1913 | 1918 | | |
1914 | | - | |
1915 | | - | |
| 1919 | + | |
| 1920 | + | |
1916 | 1921 | | |
1917 | 1922 | | |
1918 | 1923 | | |
| |||
0 commit comments