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:
Victor Marin 2025-08-25 11:35:05 +03:00 committed by GitHub
parent 4c996a8a7f
commit 9204a08207
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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),
});