Should work

This commit is contained in:
cdricms
2025-12-06 17:56:19 +01:00
parent 15fbc7b218
commit 62ad13cb8c
2 changed files with 7 additions and 5 deletions

View File

@@ -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"
}
}