-
Notifications
You must be signed in to change notification settings - Fork 274
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
🐛 Account for missing JSON fields in search results #299
Conversation
do { | ||
lookup = try storeSearch.lookup(app: appId) | ||
} catch { | ||
let maserror = error as! MASError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Force Cast Violation: Force casts should be avoided. (force_cast)
expect(searchList.resultCount) == 39 | ||
expect(searchList.results.count) == 39 | ||
} catch { | ||
let maserror = error as! MASError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Force Cast Violation: Force casts should be avoided. (force_cast)
init(from fileName: String) { | ||
let fileURL = Bundle.url(for: fileName)! | ||
print("fileURL: \(fileURL)") | ||
try! self.init(contentsOf: fileURL, options: .mappedIfSafe) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Force Try Violation: Force tries should be avoided. (force_try)
Generated by 🚫 Danger |
Bundle.url(for:)
# Conflicts: # MasKitTests/Formatters/AppListFormatterSpec.swift
No longer needed as of Quick 3
3600fcd
to
d217938
Compare
Fixes an issue where some search terms cause mas to crash with the message "Error: Unable to parse response JSON". This is due to some search results not containing entries for the following keys:
fileSizeBytes
formattedPrice
price
(normally present, but "Free" when no cost)Fixes #284