Skip to content

fix(vscode): drop invalid ownership: 'own' from object snippet; document the field (#3175) - #3193

Merged
os-zhuang merged 1 commit into
mainfrom
claude/server-hosted-fields-schema-ohgdf8
Jul 18, 2026
Merged

fix(vscode): drop invalid ownership: 'own' from object snippet; document the field (#3175)#3193
os-zhuang merged 1 commit into
mainfrom
claude/server-hosted-fields-schema-ohgdf8

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Context

Follow-up to #3185 (#3175). That PR made ownership a typed 'user' | 'org' | 'none' enum and removed the now-invalid ownership: 'own' from the CLI generate scaffold — but the VS Code os-object snippet carried the same value and was missed. Expanding the snippet produced an object that fails typecheck / ObjectSchema.create() with the new enum.

Changes

  • vscode — remove the ownership: 'own' line from the os-object snippet (owner injection is the default; nothing to declare). This was the last authorable surface still emitting the invalid value — a repo sweep confirms none remain outside historical CHANGELOG entries and the unrelated package-contribution (own/extend) records.
  • docs — document the now first-class ownership record-ownership knob in the object Additional Properties table (content/docs/data-modeling/objects.mdx). The generated reference (object.mdx) was already updated in fix(spec): declare ownership as a first-class ObjectSchema field (#3175) #3185; no other hand-written doc referenced the field, so nothing else needed correcting.

No library/runtime change — a tooling snippet fix plus a docs row.

🤖 Generated with Claude Code

https://claude.ai/code/session_014343Qv6DFAykuAJc9yjANb


Generated by Claude Code

… document the field (#3175)
Follow-up to #3185. The VS Code `os-object` snippet still scaffolded
`ownership: 'own'` — the same now-invalid value removed from the CLI `generate`
scaffold. Since #3185 made `ownership` a typed `'user' | 'org' | 'none'` enum,
expanding the snippet produced an object that fails typecheck / `ObjectSchema.create()`.
- vscode: remove the `ownership: 'own'` line from the object snippet (owner
injection is the default; nothing to declare).
- docs: document the now first-class `ownership` record-ownership knob in the
object Additional Properties table.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014343Qv6DFAykuAJc9yjANb
@vercel

vercelBot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specBuildingBuildingPreview, CommentJul 18, 2026 7:26am

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation size/xs labels Jul 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): objectstack-vscode.

1 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/plugins/packages.mdx(via packages/vscode-objectstack)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@os-zhuangos-zhuang added tooling skip-changeset PR has no user-facing published change; bypasses the changeset gate and removed size/xs labels Jul 18, 2026 — with Claude
@os-zhuang
os-zhuang marked this pull request as ready for review July 18, 2026 07:31
@os-zhuang
os-zhuang merged commit 1c7ab8b into mainJul 18, 2026
24 of 25 checks passed
@os-zhuang
os-zhuang deleted the claude/server-hosted-fields-schema-ohgdf8 branch July 18, 2026 07:31
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/xsskip-changesetPR has no user-facing published change; bypasses the changeset gatetooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@os-zhuang@claude