Scopes: Fix zod schema for scope spec (#109348)
* fix zod schema for scope spec * keep only title and filters required
This commit is contained in:
@@ -33,9 +33,9 @@ export const ScopeSpecFilterSchema = z.object({
|
||||
|
||||
export const ScopeSpecSchema = z.object({
|
||||
title: z.string(),
|
||||
type: z.string(),
|
||||
description: z.string(),
|
||||
category: z.string(),
|
||||
type: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
category: z.string().optional(),
|
||||
filters: z.array(ScopeSpecFilterSchema),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user