fix: handle undefined values schemas
This commit is contained in:
@@ -63,9 +63,9 @@ export const roomSchema = z
|
||||
roomTypes: z.array(roomTypesSchema),
|
||||
roomFacilities: z.array(roomFacilitiesSchema),
|
||||
occupancy: z.object({
|
||||
total: z.number(),
|
||||
adults: z.number(),
|
||||
children: z.number(),
|
||||
total: z.number().optional(),
|
||||
adults: z.number().optional(),
|
||||
children: z.number().optional(),
|
||||
}),
|
||||
roomSize: z.object({
|
||||
min: z.number(),
|
||||
|
||||
Reference in New Issue
Block a user