From 0b3842db692bcbc43788825f2afadb3ba6762299 Mon Sep 17 00:00:00 2001 From: David Fernandez Date: Fri, 9 Nov 2018 18:22:15 +0100 Subject: [PATCH] update boarding pass template fix the `barcode` key which is now deprecated in favour of `barcodes` (see https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/TopLevel.html#//apple_ref/doc/uid/TP40012026-CH2-SW5). `barcodes` key is now a top level key and not a child of `boardingPass` --- lib/commands/templates/boarding-pass.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/commands/templates/boarding-pass.json b/lib/commands/templates/boarding-pass.json index 7aec61c..b582e97 100644 --- a/lib/commands/templates/boarding-pass.json +++ b/lib/commands/templates/boarding-pass.json @@ -7,6 +7,13 @@ "serialNumber" : "123456", "foregroundColor": "#866B23", "backgroundColor": "#FFD248", + "barcodes" : [ + { + "message" : "DL123", + "format" : "PKBarcodeFormatQR", + "messageEncoding" : "iso-8859-1" + } + ], "boardingPass" : { "primaryFields" : [ { @@ -40,11 +47,6 @@ } ], "transitType" : "PKTransitTypeAir", - "barcode" : { - "message" : "DL123", - "format" : "PKBarcodeFormatQR", - "messageEncoding" : "iso-8859-1" - }, "backFields" : [ { "key" : "terms",