fix(SW-1342)!: Merged in fix/SW-1342-get-booking-schema-fix (pull request #1170)

BREAKING CHANGE: should be released to prod together with commit: 999aa376fb and requires Booking API to be released 

fix(SW-1342)!: update booking schema to allow nullable and optional fields for confirmationNumber and description

* fix!: update booking schema to allow nullable and optional fields for confirmationNumber and description


Approved-by: Arvid Norlin
This commit is contained in:
Tobias Johansson
2025-01-20 09:24:36 +00:00
parent 7ba0441ed4
commit 8a3314b6d5

View File

@@ -29,9 +29,9 @@ export const createBookingSchema = z
errors: z
.array(
z.object({
confirmationNumber: z.string(),
confirmationNumber: z.string().nullable().optional(),
errorCode: z.string(),
description: z.string(),
description: z.string().nullable().optional(),
meta: z
.record(z.string(), z.union([z.string(), z.number()]))
.nullable()