Updated zod to v4
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user