ryantenney / passkit4j

Java library for generating Apple Passbook (.pkpass) files

Home Page:http://www.ryantenney.com/passkit4j/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty String in value of TextField not render to json

UltimateFighter opened this issue · comments

if i do this:

primaryFields.add( new TextField( "Test key", "Test text", ""));

The json looks like:
"primaryFields" : [ {
"key" : "Test key",
"label" : "Test text",
"textAlignment" : "PKTextAlignmentLeft"
} ],

The right json should look like this:
"primaryFields" : [ {
"key" : "Test key",
"label" : "Test text",
"textAlignment" : "PKTextAlignmentLeft",
"value" : ""
} ],

Apple says The value field is required., otherwise the pass in invalid and i can't put it into passkit.

Thanks! I fixed this and released version 1.0.2 which is now available from Maven central.