Skip to content

Barcodes field is ignored #17

@suzukieng

Description

@suzukieng

Issue summary

The non-legacy barcodes field is ignored, while the barcode field works.

Expected behaviour

The barcodes field should result in JSON output corresponding to:
https://developer.apple.com/documentation/walletpasses/pass/barcodes

Actual behaviour

When using the barcodes field and setting it to a list of Barcode objects, its content are ignored.

In the code, there are comments regarding barcode being a legacy field and to use barcodes instead, but apparently it is unhandled, see:

# barcodes have 2 fields, 'barcode' is legacy so limit it to the legacy formats, 'barcodes' supports all

Steps to reproduce the problem

  1. Create a pass and set the barcodes field to a list of Barcode
  2. Build/sign the pass
  3. Observe that in the json no barcode output is generated

Checklist

  • [ x ] I have searched the issues of this repo and believe that this is not a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions