Skip to content

Commit

Permalink
🐛 fix: improve pluginSchema types
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Dec 15, 2023
1 parent 6f96376 commit 5d74726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/schema/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { z } from 'zod';

const JSONSchema = z.object({
properties: z.object({}),
required: z.array(z.string()).optional(),
type: z.enum(['object']),
});
export const pluginApiSchema = z.object({
Expand Down
1 change: 1 addition & 0 deletions src/types/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface PluginSchema extends Omit<JSONSchema7, 'type'> {
properties: {
[key: string]: JSONSchema7;
};
required?: string[];
type: 'object';
}

Expand Down

0 comments on commit 5d74726

Please sign in to comment.