Updated zod to v4

This commit is contained in:
Alexis
2025-07-26 23:18:09 +02:00
parent b0975ee293
commit 1d74d6f64b
18 changed files with 162 additions and 93 deletions

View File

@@ -3,9 +3,9 @@ import { z } from "zod"
import type { Calendar } from "~/models/CalendarConfig";
const querySchema = z.object({
id: z.number({ coerce: true }).positive().int().optional(),
id: z.coerce.number().positive().int().optional(),
shortId: z.string().optional(),
full: z.boolean({ coerce: true }).optional()
full: z.coerce.boolean().optional()
})
export default defineEventHandler(async (event) => {