Changed schemas to accept preferredStyleSchemes from pass json but not from props

This commit is contained in:
Alexander Cerutti
2024-10-01 13:13:56 +02:00
parent dff2870eec
commit b21e29918e

View File

@@ -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<PassPropsFromMethods>({
relevantDate: Joi.string().isoDate(),
expirationDate: Joi.string().isoDate(),
locations: Joi.array().items(Location),
preferredStyleSchemes: PreferredStyleSchemes,
});
export const PassKindsProps = Joi.object<PassKindsProps>({