Skip to content

Commit 715ec9e

Browse files
fix(specs): required ingestion search params (generated)
algolia/api-clients-automation#3516 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent f83d5e1 commit 715ec9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Ingestion/Models/TransformationSearch.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import Foundation
77
#endif
88

99
public struct TransformationSearch: Codable, JSONEncodable {
10-
public var transformationIDs: [String]?
10+
public var transformationIDs: [String]
1111

12-
public init(transformationIDs: [String]? = nil) {
12+
public init(transformationIDs: [String]) {
1313
self.transformationIDs = transformationIDs
1414
}
1515

@@ -21,7 +21,7 @@ public struct TransformationSearch: Codable, JSONEncodable {
2121

2222
public func encode(to encoder: Encoder) throws {
2323
var container = encoder.container(keyedBy: CodingKeys.self)
24-
try container.encodeIfPresent(self.transformationIDs, forKey: .transformationIDs)
24+
try container.encode(self.transformationIDs, forKey: .transformationIDs)
2525
}
2626
}
2727

@@ -33,6 +33,6 @@ extension TransformationSearch: Equatable {
3333

3434
extension TransformationSearch: Hashable {
3535
public func hash(into hasher: inout Hasher) {
36-
hasher.combine(self.transformationIDs?.hashValue)
36+
hasher.combine(self.transformationIDs.hashValue)
3737
}
3838
}

0 commit comments

Comments
 (0)