Skip to content

Commit a3c1475

Browse files
committed
docs(spec): the SelectOptionSchema visibleWhen docblock qualifies each number of its objectui pair
Claude-Session: https://claude.ai/code/session_014EJ1ED8X4MMrT18BhVx4tx Co-authored-by: Claude <noreply@anthropic.com>
1 parent 847867e commit a3c1475

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
A field-option docblock names both sibling issues by repository
6+
7+
The docblock on `SelectOptionSchema`'s `visibleWhen` in `src/data/field.zod.ts` cited a pair
8+
of objectui issues as `objectui#6110 + #6111`, which reads the second number as
9+
this repository's. It now qualifies each number on its own, so both point at the
10+
objectui records the sentence describes. Comment only: no type, schema, export
11+
or runtime behaviour changes.

‎packages/spec/src/data/field.zod.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export const SelectOptionSchema = lazySchema(() => strictObject({
367367
* Options resolve through `resolveCascadingOptions` against that scope
368368
* (ADR-0068 / objectui#2284), while field- and section-level rules go through
369369
* `evalFieldPredicate` — a different evaluator, but since objectui#6010 (field)
370-
* and objectui#6110 + #6111 (section) it is handed the same host scope, so
370+
* and objectui#6110 + objectui#6111 (section) it is handed the same host scope, so
371371
* `current_user` resolves on those surfaces too. What still separates this one
372372
* is ENFORCEMENT, not vocabulary: per-option `visibleWhen` is the only
373373
* VISIBILITY predicate the SERVER also evaluates — the rule validator refuses

0 commit comments

Comments
 (0)