Can't generate boarding pass
See original GitHub issueHi,
I’ve hit a problem trying to generate a boarding pass.
I have managed to generate a sample event type pass with no problem at all. It’s just the boarding pass that is giving me problems.
I’m seeing this error:
Schema validation failed due to error: "transitType" is not allowed +0ms
I do have transitType in the boadingPass object as you can see in my JSON
{
"formatVersion": 1,
"organizationName": "Hazardous Frog LTD",
"passTypeIdentifier": "pass.com.hazardousfrog.xxxxx",
"serialNumber": "placeholder",
"teamIdentifier": "AAAAAAAAAAA",
"description": "HF Rail Ticket",
"relevantDate": "2019-12-08T13:00-08:00",
"locations": [
{
"longitude": -122.3748889,
"latitude": 37.6189722
},
{
"longitude": -122.03118,
"latitude": 37.33182
}
],
"barcodes": [{
"message": "06FB3SHXG3Y00R1JTETQMAUZYHXLALMCRDZPWTFPFWKKBDSZSQEQTVYWSZZWWWNXSSUAXCDJDQTZMGODMFIRJCEWEKACPBNOUGZCDRESKGTKFTZNYDURPFILJFCVAHTQFHELJCXPYBCJJIIJPIRCVECCLQWFMGROBHRGFIRKPNJVKOOYCXTHRAIFSFXQQUVCARZROCACWBEGEWUVFKTDKNSQCACSGWUDBVDHMJMGH",
"format": "PKBarcodeFormatAztec",
"messageEncoding": "iso-8859-1"
}],
"logoText": "...Logo...",
"foregroundColor": "rgb(0, 0, 0)",
"backgroundColor": "rgb(255, 248, 242)",
"boardingPass": {
"transitType": "PKTransitTypeTrain",
"headerFields": [
{
"label": "journey",
"key": "journey",
"value": "Field E0001",
"textAlignment": "PKTextAlignmentLeft"
}
],
"primaryFields": [
{
"key": "depart",
"label": "depart",
"value": "27/11/2019",
"textAlignment": "PKTextAlignmentLeft"
},
{
"key": "arrive",
"label": "arrive",
"value": "27/11/2019",
"textAlignment": "PKTextAlignmentRight"
}
],
"secondaryFields": [
{
"key": "status",
"label": "status",
"value": "ADULT",
"textAlignment": "PKTextAlignmentLeft"
},
{
"key": "validuntil",
"label": "valid until",
"value": "27/11/2019",
"textAlignment": "PKTextAlignmentRight"
}
],
"auxiliaryFields": [
{
"key": "tickettype",
"label": "ticket type",
"value": "SOS",
"textAlignment": "PKTextAlignmentLeft"
},
{
"key": "route",
"label": "route",
"value": "Any Permitted",
"textAlignment": "PKTextAlignmentRight"
}
],
"backFields": [
{
"key": "itinerary",
"label": "itinerary",
"value": "itinerary goes here..."
},
{
"key": "freeinformation",
"value": "Field E0044"
},
{
"key": "contactinformation",
"label": "Contact Details",
"value": "Field E0022"
}
]
}
}
if I omit transitTyoe (as a test) I get this error instead:
UnhandledPromiseRejectionWarning: Error: Error: Cannot proceed with pass creation. transitType field is required for boardingPasses.
I’m using v 1.6.4 with Node 8.10.0
Do you have any idea what I am doing wrong here?
Issue Analytics
- State:
- Created 4 years ago
- Comments:27 (26 by maintainers)
Top Results From Across the Web
Simple Ways to Get Your Boarding Pass at the Airport
Check your boarding pass for your gate number and proceed to security. Follow the airport signs directing you to the appropriate security line...
Read more >What if I can't print my boarding pass at the time of the ... - Quora
Go to the airline counter and present your electronic boarding pass, one that you have on your phone or tablet or computer and...
Read more >What to do when you can't print your boarding pass?
This only works if your boarding pass has a bar code they use to scan prior to boarding. What you need to do...
Read more >Mobile boarding pass − Travel information - American Airlines
Once you get your boarding pass, just scan the barcode on the screen at airport security checkpoints and at the gate during boarding...
Read more >Online check-in but not printing boarding pass - what to do?
Answer 1 of 5: Just wondering if you check in online, but are unable to print the boarding pass, what do you do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ianbale excuse me sir, are you sending up to 20 (or more) Tickets to the same device? May it be an option to send only one and update it accordingly?
I’m glad of this 😃