mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 13:25:19 +00:00
Changed schemas to accept preferredStyleSchemes from pass json but not from props
This commit is contained in:
@@ -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>({
|
||||
|
||||
Reference in New Issue
Block a user