Skip to content

Commit 3eece8b

Browse files
Copilothotlong
andcommitted
Fix: Make id and version optional in PluginSchema
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 11717c3 commit 3eece8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/spec/src/system/plugin.zod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export const PluginLifecycleSchema = z.object({
7979
export type PluginLifecycleHooks = z.infer<typeof PluginLifecycleSchema>;
8080

8181
export const PluginSchema = PluginLifecycleSchema.extend({
82-
id: z.string().min(1).describe('Unique Plugin ID (e.g. com.example.crm)'),
83-
version: z.string().regex(/^\d+\.\d+\.\d+$/).describe('Semantic Version'),
82+
id: z.string().min(1).optional().describe('Unique Plugin ID (e.g. com.example.crm)'),
83+
version: z.string().regex(/^\d+\.\d+\.\d+$/).optional().describe('Semantic Version'),
8484
description: z.string().optional(),
8585
author: z.string().optional(),
8686
homepage: z.string().url().optional(),

0 commit comments

Comments
 (0)