Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed purchaseUris by making it optional. #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonahgabriel
Copy link

@jonahgabriel jonahgabriel commented Aug 28, 2020

There are a number of sets that contain cards with missing keys. This causes a decoding error when trying to call set.getCards() which returns an empty array. This PR fixes the issue by making purchaseUris optional.

▿ Result<CardList> ▿ failure : DecodingError ▿ keyNotFound : 2 elements - .0 : CodingKeys(stringValue: "purchaseUris", intValue: nil) ▿ .1 : Context ▿ codingPath : 2 elements - 0 : CodingKeys(stringValue: "data", intValue: nil) ▿ 1 : _JSONKey(stringValue: "Index 15", intValue: 15) - stringValue : "Index 15" ▿ intValue : Optional<Int> - some : 15 - debugDescription : "No value associated with key CodingKeys(stringValue: \"purchaseUris\", intValue: nil) (\"purchaseUris\"), converted to purchase_uris." - underlyingError : nil

Affected sets are:
ddf, me3, me1, psus, 6ed, 5ed, ren, 4bb, 4ed, sum, leg, 3ed, fbb, arn, cei, ced, 2ed, leb,lea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant