Skip to content

Commit

Permalink
fix(specs): required ingestion search params (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3516

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Aug 12, 2024
1 parent f83d5e1 commit 715ec9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Ingestion/Models/TransformationSearch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import Foundation
#endif

public struct TransformationSearch: Codable, JSONEncodable {
public var transformationIDs: [String]?
public var transformationIDs: [String]

public init(transformationIDs: [String]? = nil) {
public init(transformationIDs: [String]) {
self.transformationIDs = transformationIDs
}

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

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(self.transformationIDs, forKey: .transformationIDs)
try container.encode(self.transformationIDs, forKey: .transformationIDs)
}
}

Expand All @@ -33,6 +33,6 @@ extension TransformationSearch: Equatable {

extension TransformationSearch: Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(self.transformationIDs?.hashValue)
hasher.combine(self.transformationIDs.hashValue)
}
}

0 comments on commit 715ec9e

Please sign in to comment.