-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
category: reliabilityRelated to app’s reliability, accuracy, and perceived waiting timeRelated to app’s reliability, accuracy, and perceived waiting timefeature: variation listRelated to the variations list for variable products.Related to the variations list for variable products.type: taskAn internally driven task.An internally driven task.
Description
For better resilience to unexpected data when requesting product variations from the API, we should add fallbacks for the following known Swift.DecodingError.typeMismatch errors:
- dimensions.length:
Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "dimensions", intValue: nil), CodingKeys(stringValue: "length", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil))
- permalink:
Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "permalink", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil))
- regular_price:
Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "regular_price", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil))
- sku:
Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "sku", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil))
- weight:
Swift.DecodingError.typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "data", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "weight", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil))
Metadata
Metadata
Assignees
Labels
category: reliabilityRelated to app’s reliability, accuracy, and perceived waiting timeRelated to app’s reliability, accuracy, and perceived waiting timefeature: variation listRelated to the variations list for variable products.Related to the variations list for variable products.type: taskAn internally driven task.An internally driven task.