feat(SW-176): add default values

This commit is contained in:
Fredrik Thorsson
2024-09-03 17:12:45 +02:00
parent a3e540baa6
commit 70460e5aba
3 changed files with 24 additions and 7 deletions

View File

@@ -470,7 +470,7 @@ export const getHotelDataSchema = z.object({
const occupancySchema = z.object({
adults: z.number(),
children: z.number().optional(),
children: z.number(),
})
const bestPricePerStaySchema = z.object({
@@ -512,7 +512,7 @@ const availabilitySchema = z.object({
attributes: z.object({
checkInDate: z.string(),
checkOutDate: z.string(),
occupancy: occupancySchema,
occupancy: occupancySchema.optional(),
status: z.string(),
hotelId: z.number(),
ratePlanSet: z.string().optional(),