Merged in fix/sw-2125-scandic-go-breakfast (pull request #1726)
fix(sw-2125): breakfast validation was wrong on Scandic Go Approved-by: Bianca Widstam
This commit is contained in:
@@ -542,10 +542,12 @@ export const locationsSchema = z.object({
|
|||||||
export const breakfastPackagesSchema = z
|
export const breakfastPackagesSchema = z
|
||||||
.object({
|
.object({
|
||||||
data: z.object({
|
data: z.object({
|
||||||
attributes: z.object({
|
attributes: z
|
||||||
hotelId: z.number(),
|
.object({
|
||||||
packages: z.array(breakfastPackageSchema),
|
hotelId: z.number(),
|
||||||
}),
|
packages: z.array(breakfastPackageSchema),
|
||||||
|
})
|
||||||
|
.or(z.object({ packages: z.tuple([]) })),
|
||||||
type: z.literal("breakfastpackage"),
|
type: z.literal("breakfastpackage"),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user