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 08:35:05 +00:00
committed by GitHub
parent 4c996a8a7f
commit 9204a08207
+3 -3
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),
});