Added check on client side (api)

This commit is contained in:
Alexis
2024-11-24 19:56:00 +01:00
parent 5258ed3f2a
commit c7069164b0
10 changed files with 68 additions and 24 deletions

View File

@@ -20,8 +20,8 @@ export interface CalendarEvent {
*/
export const postEventBodySchema = z.object({
event: z.object({
title: z.string(),
description: z.string().optional().nullable(),
title: z.string().max(240),
description: z.string().max(1200).optional().nullable(),
location: z.string().optional().nullable(),
startDate: dateSchema.required(),
endDate: dateSchema.optional().nullable(),