Commit ed9d876
`FieldSchema` has materialised `unique` type-conditionally since #13894 landed
(PR #14904): an omitted `unique` resolves to `'organization'` on an `autonumber`
field and to `false` on every other type; an explicit `unique: false` is the
opt-out. The Universal Field Properties table on `field-types.mdx` still stated
one flat `false`, so an author reading the table got a wrong answer for one
field type.
Re-measured on current `main` through the built `@objectstack/spec` before
writing the cell:
autonumber (unique omitted) -> ok=true unique="organization"
autonumber (unique: false explicit) -> ok=true unique=false
text (unique omitted) -> ok=true unique=false
number (unique omitted) -> ok=true unique=false
The `autonumber` callout at `:485` / `:493` is deliberately UNCHANGED: its
"guarantees a unique, ever-increasing business identifier" is true against the
post-#13894 schema, and the wording of the new cell is kept consistent with it
and with the `unique` doc block in `FieldSchema`.
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 582bea6 commit ed9d876
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
0 commit comments