We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 05c9e5e + 3eece8b commit cba6228Copy full SHA for cba6228
packages/spec/src/system/plugin.zod.ts
@@ -79,8 +79,8 @@ export const PluginLifecycleSchema = z.object({
79
export type PluginLifecycleHooks = z.infer<typeof PluginLifecycleSchema>;
80
81
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'),
+ id: z.string().min(1).optional().describe('Unique Plugin ID (e.g. com.example.crm)'),
+ version: z.string().regex(/^\d+\.\d+\.\d+$/).optional().describe('Semantic Version'),
84
description: z.string().optional(),
85
author: z.string().optional(),
86
homepage: z.string().url().optional(),
0 commit comments