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
|
||||
.object({
|
||||
data: z.object({
|
||||
attributes: z.object({
|
||||
hotelId: z.number(),
|
||||
packages: z.array(breakfastPackageSchema),
|
||||
}),
|
||||
attributes: z
|
||||
.object({
|
||||
hotelId: z.number(),
|
||||
packages: z.array(breakfastPackageSchema),
|
||||
})
|
||||
.or(z.object({ packages: z.tuple([]) })),
|
||||
type: z.literal("breakfastpackage"),
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user