feat(SW-176): add default values
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user