mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +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"
|
| "barcodes"
|
||||||
| "relevantDate"
|
| "relevantDate"
|
||||||
| "expirationDate"
|
| "expirationDate"
|
||||||
| "locations";
|
| "locations"
|
||||||
|
| "preferredStyleSchemes";
|
||||||
|
|
||||||
export type PassTypesProps =
|
export type PassTypesProps =
|
||||||
| "boardingPass"
|
| "boardingPass"
|
||||||
@@ -139,6 +140,7 @@ export const PassPropsFromMethods = Joi.object<PassPropsFromMethods>({
|
|||||||
relevantDate: Joi.string().isoDate(),
|
relevantDate: Joi.string().isoDate(),
|
||||||
expirationDate: Joi.string().isoDate(),
|
expirationDate: Joi.string().isoDate(),
|
||||||
locations: Joi.array().items(Location),
|
locations: Joi.array().items(Location),
|
||||||
|
preferredStyleSchemes: PreferredStyleSchemes,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const PassKindsProps = Joi.object<PassKindsProps>({
|
export const PassKindsProps = Joi.object<PassKindsProps>({
|
||||||
|
|||||||
Reference in New Issue
Block a user