From 8a3314b6d58e35e7636f8a7fa29a57f400af6b70 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Mon, 20 Jan 2025 09:24:36 +0000 Subject: [PATCH] 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: 999aa376fb5a0d0545889afdf777d1b78b5e2852 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 --- server/routers/booking/output.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routers/booking/output.ts b/server/routers/booking/output.ts index f3e343d1e..442fb5810 100644 --- a/server/routers/booking/output.ts +++ b/server/routers/booking/output.ts @@ -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()