Skip to content

Commit 0d60f88

Browse files
committed
docs(lint): state the door measurement the view-container leg rests on
Claude-Session: https://claude.ai/code/session_01QcAS3qiYYZNezaxZxaUdMV Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9fa1ff4 commit 0d60f88

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.changeset/20216-view-container-object-refused.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ which object its views belong to, and it is the key the runtime indexes views by
1515
(`getViewsByObject()` / `GET /meta/view?object=`). The schema declares it `z.string()`, and
1616
nothing resolved it: `defineStack`'s cross-reference check reads a container's
1717
`list.data` / `form.data` bindings, never the container's own key. So a container bound to a
18-
name no object carries passed all three commands with no finding of any severity, and at
18+
name no object carries passed: `os validate` printed "Validation passed" and exited 0,
19+
saying nothing about the view, and `os build` / `os lint` run the same rule table. At
1920
runtime none of its views was found for any object. The common case is not a typo but a
2021
missing namespace prefix — `object: 'order_line'` in a project whose object is
2122
`my_app_order_line` — which is exactly what `os generate view` wrote in every namespaced

‎packages/lint/src/validate-object-references.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,9 @@ export function validateObjectReferences(stack: AnyRec): ObjectRefFinding[] {
340340
// runtime indexes by — `getViewsByObject()` / `GET /meta/view?object=` match a
341341
// view's `object` against the object asked for — so a container bound to a
342342
// name no object carries is never found for ANY object. Measured at the
343-
// public door before this leg: `os validate` exited 0, with no finding of any
344-
// severity, on `object: 'order_line'` in a project whose object is
343+
// public door with this leg disabled: `os validate` printed "Validation
344+
// passed" and exited 0, saying nothing about the view, on
345+
// `object: 'order_line'` in a project whose object is
345346
// `my_app_order_line`. That is exactly the shape `os generate view` wrote in
346347
// every namespaced project until its template learned the prefix, and any
347348
// hand or AI author can still write it.

0 commit comments

Comments
 (0)