Update GroupTag schema

This commit is contained in:
Chewbacca 2023-04-13 07:34:37 -04:00
parent 5d29666b41
commit 8702c16998

View file

@ -2,11 +2,11 @@ import z from 'zod';
const groupTagSchema = z.object({
id: z.string(),
uses: z.number(),
name: z.string(),
url: z.string(),
pinned: z.boolean().catch(false),
visible: z.boolean().default(true),
uses: z.number().optional(),
url: z.string().optional(),
pinned: z.boolean().optional().catch(false),
visible: z.boolean().optional().default(true),
});
type GroupTag = z.infer<typeof groupTagSchema>;