From b21e29918ecae413648e1ddfc27acda6349e8488 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Tue, 1 Oct 2024 13:13:56 +0200 Subject: [PATCH] Changed schemas to accept preferredStyleSchemes from pass json but not from props --- src/schemas/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/schemas/index.ts b/src/schemas/index.ts index 0d53252..38978d4 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -111,7 +111,8 @@ type PassMethodsProps = | "barcodes" | "relevantDate" | "expirationDate" - | "locations"; + | "locations" + | "preferredStyleSchemes"; export type PassTypesProps = | "boardingPass" @@ -139,6 +140,7 @@ export const PassPropsFromMethods = Joi.object({ relevantDate: Joi.string().isoDate(), expirationDate: Joi.string().isoDate(), locations: Joi.array().items(Location), + preferredStyleSchemes: PreferredStyleSchemes, }); export const PassKindsProps = Joi.object({