fixed schema validation to support multi checkbox

This commit is contained in:
2025-11-20 14:55:43 -05:00
parent d9e4c1d6ff
commit 91b915fbcf
3 changed files with 36 additions and 17 deletions

View File

@@ -2,7 +2,8 @@ import { z } from "zod";
export const courseEventAttendeeSchema = z.object({
attendee_id: z.number().int().positive(),
passed: z.boolean(),
passed_bookwork: z.boolean(),
passed_qual: z.boolean(),
remarks: z.string(),
attendee_role_id: z.number().int().positive()
})