Commit 4b8f5f3
committed
docs(field-types): give
The Universal Field Properties row typed `unique` as `boolean` with the
one-line description "Enforce uniqueness". The contract has been
`boolean | 'global' | 'organization'` since ADR-0120 D1, so the table hid
two of the three spellings — a reader who trusted it could not express
`'global'` at all, and was contradicted by this same page's own example
at :50, which passes `unique: 'organization'`.
The type cell now matches the generated reference
(`content/docs/references/data/field.mdx`) spelling for spelling, and the
description points at the `FieldSchema` doc block rather than restating a
rule that regenerates elsewhere — the convention the sibling `multiple`
row on this table already uses.
The default cell is deliberately left at `false`. Measured against this
tree: `FieldSchema.parse({ type: 'autonumber', ... })` with `unique`
omitted resolves to `false`, exactly as `text` does. The card asked for a
type-conditional default (`'organization'` on `autonumber`) predicated on
#13894, which has not landed. Documenting it would assert a default the
schema does not implement.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCkunique its real scope vocabulary1 parent 450e73b commit 4b8f5f3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
| 655 | + | |
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| |||
0 commit comments