Closed sergiusens closed 1 year ago
Hi, thanks for reporting. This indeed a bug, according to the specifications, the fields can be empty. So the check does not make any sense. I will check this on the weekend and make sure the display of passes without primary fields works well, and then publish a fix for the app.
FWIW, I edited the file manually (by removing the empty entries) and it seemed to display correctly.Thanks!
Hi, sorry for the late update, I just pushed an updated version to the store which should allow empty fields, so this was fixed with #8296786.
My assumption initially was, that while all fields are optional, they should be populated when the property is given. It is not clear from the specification whether or not existing properties in the JSON must have populated fields array or otherwise must be omitted, so I just made it so that either missing property or existing property with empty array will be treated as missing.
Let me know if you encounter further issues.
This is where I see the failure https://github.com/patrickjane/ut-passes/blob/b223d417a5c8869be0c02be6a9cee46e5df8dff4/src/pkpass.cpp#L417
The primary fields in my pkpass is empty