Skip to content

Commit be53c60

Browse files
os-zhuangclaude
andcommitted
fix(cli): drop stale ownership key from init scaffold object template
The `os init` scaffold emitted `ownership: 'own'` on the starter object in both the `app` and `plugin` templates. `ownership` is no longer a valid ObjectSchema field — it's removed from ObjectSchemaBase, and `ObjectSchema.create()` now rejects unknown top-level keys (ADR-0032 / #1535). A user copying the scaffolded object into `ObjectSchema.create({...})` would hit a validation error; the plain-literal form merely hid the problem while teaching a dead field. Remove the key from both templates. Rest of the scaffold output is unchanged; init.test.ts (28 tests) passes and end-to-end render of both templates confirms no `ownership` remains. Surfaced during the docs audit in #1866 (getting-started/quick-start.mdx). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bca06f3 commit be53c60

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

packages/cli/src/commands/init.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ export default defineStack({
150150
const ${toCamelCase(namespace)}Item: Data.Object = {
151151
name: '${namespace}_item',
152152
label: '${toTitleCase(namespace)} Item',
153-
ownership: 'own',
154153
fields: {
155154
name: {
156155
type: 'text',
@@ -223,7 +222,6 @@ export default defineStack({
223222
const ${toCamelCase(namespace)}Item: Data.Object = {
224223
name: '${namespace}_item',
225224
label: '${toTitleCase(namespace)} Item',
226-
ownership: 'own',
227225
fields: {
228226
name: {
229227
type: 'text',

0 commit comments

Comments
 (0)