Should work
This commit is contained in:
@@ -137,13 +137,15 @@ public struct ProductResponseEnvelope: Sendable, Decodable {
|
||||
}
|
||||
|
||||
public struct SearchResponseEnvelope: Sendable, Decodable {
|
||||
public let count: Int?
|
||||
public let page: Int?
|
||||
public let pageSize: Int?
|
||||
public let products: [Product]?
|
||||
public let count: Int
|
||||
public let page: Int
|
||||
public let pageSize: Int
|
||||
public let products: [Product]
|
||||
public let pageCount: Int
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case count, page, products
|
||||
case pageSize = "page_size"
|
||||
case pageCount = "page_count"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user