Skip to content

Commit cbd8528

Browse files
docs(skills): the fieldPatches example keys its option by a stored value the reference CRM declares
Contract review should-fixes: the example's option key `tech` named no option of `examples/app-crm` `crm_account.industry` (stored values technology / finance / healthcare / retail / other), so an author copying it was refused at `os validate` and install; it now patches `technology`. The section's spelled signature gains `fieldPatches`. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2g7RyXa8ErM6GAkHyc
1 parent 7ba0132 commit cbd8528

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎skills/objectstack-data/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ database layer.
358358
## Object Extension Model
359359

360360
To add fields/validations/indexes to an object you do not own, author
361-
`defineObjectExtension({ extend, fields, priority })` and register it on
361+
`defineObjectExtension({ extend, fields, fieldPatches, priority })` and register it on
362362
`defineStack({ objectExtensions: [...] })`. `priority` sets merge order (default
363363
`200`, range `0–999`); an extension can add but never remove. ⛔ Not the same key
364364
as object-level `ownership` (the record-ownership enum
@@ -374,7 +374,7 @@ values and rules stay the owner's. A key the tenant edited keeps the tenant's
374374
text; between two extensions the higher `priority` wins. A patch naming a field
375375
or option value the target lacks is refused at install and by `os validate`, and
376376
a `picklist`-bound field's options are never patchable. Example:
377-
`defineObjectExtension({ extend: 'crm_account', fieldPatches: { industry: { label: 'Sector', options: { tech: { label: 'Technology' } } } } })`.
377+
`defineObjectExtension({ extend: 'crm_account', fieldPatches: { industry: { label: 'Sector', options: { technology: { label: 'Tech' } } } } })`.
378378

379379
---
380380

0 commit comments

Comments
 (0)