😑 using search-a-licious API now...
This commit is contained in:
@@ -147,7 +147,7 @@ public struct Product: Codable, Sendable, Identifiable {
|
||||
String.self, forKey: .productName)
|
||||
genericName = try container.decodeIfPresent(
|
||||
String.self, forKey: .genericName)
|
||||
brands = try container.decodeIfPresent(String.self, forKey: .brands)
|
||||
brands = try container.decodeStringOrArray(forKey: .brands)
|
||||
brandsTags = try container.decodeIfPresent(
|
||||
[String].self, forKey: .brandsTags)
|
||||
quantity = try container.decodeIfPresent(String.self, forKey: .quantity)
|
||||
|
||||
Reference in New Issue
Block a user