Skip to content

Commit 09e1687

Browse files
Merge pull request #304 from objectstack-ai/copilot/update-workflow-integration
2 parents f9f3741 + 88de8a7 commit 09e1687

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

packages/spec/src/data/object.zod.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ const ObjectSchemaBase = z.object({
9797
* Taxonomy & Organization
9898
*/
9999
tags: z.array(z.string()).optional().describe('Categorization tags (e.g. "sales", "system", "reference")'),
100-
active: z.boolean().default(true).describe('Is the object active and usable'),
101-
isSystem: z.boolean().default(false).describe('Is system object (protected from deletion)'),
102-
abstract: z.boolean().default(false).describe('Is abstract base object (cannot be instantiated)'),
100+
active: z.boolean().optional().default(true).describe('Is the object active and usable'),
101+
isSystem: z.boolean().optional().default(false).describe('Is system object (protected from deletion)'),
102+
abstract: z.boolean().optional().default(false).describe('Is abstract base object (cannot be instantiated)'),
103103

104104
/**
105105
* Storage & Virtualization
106106
*/
107-
datasource: z.string().default('default').describe('Target Datasource ID. "default" is the primary DB.'),
107+
datasource: z.string().optional().default('default').describe('Target Datasource ID. "default" is the primary DB.'),
108108
tableName: z.string().optional().describe('Physical table/collection name in the target datasource'),
109109

110110
/**

packages/spec/src/stack.zod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ export type ObjectStack = ObjectStackDefinition;
105105

106106
/**
107107
* Type-safe helper to define a project configuration.
108+
* Uses input type to allow optional fields with defaults.
108109
*/
109-
export const defineStack = (config: ObjectStackDefinition) => config;
110+
export const defineStack = (config: z.input<typeof ObjectStackDefinitionSchema>) => config;
110111

111112

112113
/**

packages/spec/src/ui/app.zod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ export const AppSchema = z.object({
150150
branding: AppBrandingSchema.optional().describe('App-specific branding'),
151151

152152
/** Application status */
153-
active: z.boolean().default(true).describe('Whether the app is enabled'),
153+
active: z.boolean().optional().default(true).describe('Whether the app is enabled'),
154154

155155
/** Is this the default app for new users? */
156-
isDefault: z.boolean().default(false).describe('Is default app'),
156+
isDefault: z.boolean().optional().default(false).describe('Is default app'),
157157

158158
/**
159159
* Navigation Tree Structure.

0 commit comments

Comments
 (0)