mirror of https://github.com/grafana/grafana.git
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:
parent
4c996a8a7f
commit
9204a08207
|
@ -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),
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue