Skip to content

Commit 5039eb2

Browse files
committed
docs(skills): the required set_null refusal names the multi-valued case, and the eval index line reads as a sentence
A required `multiple: true` field declaring `set_null` refuses the delete only when removing the member would empty the set; otherwise the member is removed and the delete goes through. The relationships rule's delete-behaviours paragraph now says so, since it binds a `user` field to the lookup behaviour. Claude-Session: https://claude.ai/code/session_01J8VVAkZCePk1V8qh465qcT Co-authored-by: Claude <noreply@anthropic.com>
1 parent dceca37 commit 5039eb2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎skills/objectstack-data/evals/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ JSON fixtures in the objectui shape (`skill_name`, `evals[]`: `prompt`,
55

66
- `objects-fields-relationships.json` — naming, field types (`secret` vs
77
`password`), relationships (junction vs multi-value lookup,
8-
`deleteBehavior`, a `user` field's included), validation (`state_machine`, unique **index**),
8+
`deleteBehavior`, on a `user` field too), validation (`state_machine`, unique **index**),
99
conditional field rules.
1010
- `hooks-security-seeds-datasources.json` — search mirrors via hooks,
1111
permission-set scopes, external datasources, seeds (`externalId`,

‎skills/objectstack-data/rules/relationships.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ cleared; a `multiple` field loses only that member — or an authored `cascade`
177177
`restrict`), and a `user` field only when it declares a value: deleting the user
178178
then cascades, clears or refuses exactly as a `lookup` does; undeclared, the
179179
field keeps the deleted user's id. `restrict`, and `set_null` on a `required`
180-
field, refuse the delete with `409 DELETE_RESTRICTED`.
180+
field (a `multiple` one only when the removal would empty it), refuse the delete
181+
with `409 DELETE_RESTRICTED`.
181182

182183
## Roll-up Summaries
183184

0 commit comments

Comments
 (0)