From 4e2a28865cefd0f9b3dabc433e648e7969c47bb9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 29 Aug 2026 04:47:36 +0000 Subject: [PATCH] fix(lint): spell the runtime-gate fixture's master_detail reference as the string the spec declares `runtime-gate.object-writes.test.ts` carried `reference: { object: 'shop_invoice' }` at a field-def key position. `FieldSchema.reference` is declared `{"type":"string"}`, so `ObjectSchema.safeParse` refuses that carrier with `invalid_type` at `fields.invoice.reference`, and the rule under test reads it through `refOf()`, which accepts only a string and so resolved the master-detail parent to `undefined`. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01CPrUz21stTFhJRUirdc4yw --- packages/lint/src/runtime-gate.object-writes.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lint/src/runtime-gate.object-writes.test.ts b/packages/lint/src/runtime-gate.object-writes.test.ts index f26edc08d4..f76ac3bb5c 100644 --- a/packages/lint/src/runtime-gate.object-writes.test.ts +++ b/packages/lint/src/runtime-gate.object-writes.test.ts @@ -355,7 +355,7 @@ describe('collection-resident finding paths are name-keyed on the wire (#10064)' name: 'shop_invoice_line', sharingModel: 'private', fields: { - invoice: { type: 'master_detail', reference: { object: 'shop_invoice' } }, + invoice: { type: 'master_detail', reference: 'shop_invoice' }, }, }, ];