fix(GRO-636): input validation fixes for 5 API routes #294

Merged
the-dogfather-cto[bot] merged 5 commits from fix/gro-636-input-validation-v3 into main 2026-04-15 04:26:21 +00:00
Showing only changes of commit 636f6a47ec - Show all commits
+4
View File
@@ -41,6 +41,10 @@ const createAppointmentSchema = z.object({
frequencyWeeks: z.number().int().min(1).max(52),
count: z.number().int().min(2).max(52),
})
.refine(
(r) => r.frequencyWeeks * r.count <= 52,
{ message: "Recurrence series must not exceed 1 year" }
)
.optional(),
});