coorasse / passkit

Wallet Pass generation for Ruby On Rails
MIT License
90 stars 27 forks source link

PASSKIT_FORMAT_VERSION is undocumented #10

Closed masukomi closed 1 year ago

masukomi commented 1 year ago

it defaults to 1 but it's unclear why its configurable or what the implications of configuring it are.

jonathandean commented 1 year ago

@masukomi this value gets passed along to the JSON definition of the pass as the formatVersion key as documented here: https://developer.apple.com/documentation/walletpasses/pass

The only value currently accepted is still 1 based on the documentation:

formatVersion
number
(Required) The version of the file format. The value must be 1.

I'm not the author of this gem but my guess is that it was made to be configurable for potential future updates on Apple's side.

coorasse commented 1 year ago

Yes, it's always 1. You can configure it, but you shouldn't. That's also why is not documented.