wordpress-mobile/WordPressKit-iOS

Error parsing plans response - raw price can be decimal.

maxme opened this issue · 1 comments

maxme commented

Expected behavior

No error in the logs when loading the Plan screen.

Actual behavior

It seems the parser is expecting int values for the prices but they should instead be doubles.

2020-03-04 15:56:59:708 Error parsing plans response for site dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "rawPrice", intValue: nil)], debugDescription: "Parsed JSON number <9.5> does not fit in Int.", underlyingError: nil))

@maxme - I updated the ticket title and description to describe the actual issue, hope that's ok.