Repository navigation
Commit 182ed4c
committed
fix(spec): narrow the options describe and the form refusal remedy to members that cannot be spelled
An enum-typed metadata-form row may carry an inline options list, for
human labels or a deliberate subset. Only a row whose members cannot be
spelled as option values omits options and derives them from the served
JSON Schema, with meanings in helpText. The describe on
FormFieldSchema.options and the remedy sentence defineForm appends to an
option-value grammar refusal now state exactly that. What is refused and
accepted is unchanged.
Tests: each case carries a firing and a dark control on real spec enums
(object.managedBy refused with options and green without; a labelled
object.sharingModel list and the field.deleteBehavior subset green, and
refused with one member mis-spelled). The old blanket-rule pins are
reversed into assertions of the narrowed wording.
Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr
Co-authored-by: Claude <noreply@anthropic.com>1 parent 61ff3ae commit 182ed4c
3 files changed
Lines changed: 263 additions & 79 deletions
File tree
- .changeset
- packages/spec/src/ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
0 commit comments