Skip to content

Commit 34ed4d5

Browse files
authored
fix(search): facet stats average and sum as nullable (#325)
1 parent 73f674a commit 34ed4d5

File tree

1 file changed

+2
-2
lines changed
  • client/src/commonMain/kotlin/com/algolia/search/model/search

1 file changed

+2
-2
lines changed

client/src/commonMain/kotlin/com/algolia/search/model/search/FacetStats.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public data class FacetStats(
2626
/**
2727
* The average facet value in the result set.
2828
*/
29-
@SerialName(KeyAvg) val average: Float,
29+
@SerialName(KeyAvg) val average: Float? = null,
3030
/**
3131
* The sum of all values in the result set.
3232
*/
33-
@SerialName(KeySum) val sum: Float
33+
@SerialName(KeySum) val sum: Float? = null
3434
)

0 commit comments

Comments
 (0)