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:
@@ -29,9 +29,9 @@ export const createBookingSchema = z
|
|||||||
errors: z
|
errors: z
|
||||||
.array(
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
confirmationNumber: z.string(),
|
confirmationNumber: z.string().nullable().optional(),
|
||||||
errorCode: z.string(),
|
errorCode: z.string(),
|
||||||
description: z.string(),
|
description: z.string().nullable().optional(),
|
||||||
meta: z
|
meta: z
|
||||||
.record(z.string(), z.union([z.string(), z.number()]))
|
.record(z.string(), z.union([z.string(), z.number()]))
|
||||||
.nullable()
|
.nullable()
|
||||||
|
|||||||
Reference in New Issue
Block a user