Skip to content

Commit 4ac9bd0

Browse files
fix(specs): averageClickPosition return type (generated)
algolia/api-clients-automation#5089 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent f29a784 commit 4ac9bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Abtesting/Models/Variant.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public struct Variant: Codable, JSONEncodable {
1414
public var addToCartRate: Double?
1515
/// [Average click position](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-position)
1616
/// for this variant.
17-
public var averageClickPosition: Int?
17+
public var averageClickPosition: Double?
1818
/// Number of click events for this variant.
1919
public var clickCount: Int
2020
/// [Click-through rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate)
@@ -58,7 +58,7 @@ public struct Variant: Codable, JSONEncodable {
5858
public init(
5959
addToCartCount: Int,
6060
addToCartRate: Double? = nil,
61-
averageClickPosition: Int? = nil,
61+
averageClickPosition: Double? = nil,
6262
clickCount: Int,
6363
clickThroughRate: Double? = nil,
6464
conversionCount: Int,

0 commit comments

Comments
 (0)