Skip to content

Commit 5d74726

Browse files
committed
🐛 fix: improve pluginSchema types
1 parent 6f96376 commit 5d74726

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/schema/manifest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { z } from 'zod';
22

33
const JSONSchema = z.object({
44
properties: z.object({}),
5+
required: z.array(z.string()).optional(),
56
type: z.enum(['object']),
67
});
78
export const pluginApiSchema = z.object({

src/types/manifest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface PluginSchema extends Omit<JSONSchema7, 'type'> {
1313
properties: {
1414
[key: string]: JSONSchema7;
1515
};
16+
required?: string[];
1617
type: 'object';
1718
}
1819

0 commit comments

Comments
 (0)