Skip to content

Commit 432dc9e

Browse files
committed
Revert "fix(ResponseSearch): refactor automaticRadius as String"
This reverts commit 38c88d5.
1 parent 97e821f commit 432dc9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commonMain/kotlin/com/algolia/search/model/response/ResponseSearch.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public data class ResponseSearch(
9797
* The automatically computed radius. For legacy reasons, this parameter is a string and not an integer.
9898
* Only returned for geo queries without an explicitly specified [Query.aroundRadius].
9999
*/
100-
@SerialName(KeyAutomaticRadius) val automaticRadiusOrNull: String? = null,
100+
@SerialName(KeyAutomaticRadius) val automaticRadiusOrNull: Float? = null,
101101
/**
102102
* Actual host name of the server that processed the request. Our DNS supports automatic failover and load
103103
* balancing, so this may differ from the host name used in the request.
@@ -217,7 +217,7 @@ public data class ResponseSearch(
217217
get() = aroundLatLngOrNull!!
218218

219219
@Transient
220-
public val automaticRadius: String
220+
public val automaticRadius: Float
221221
get() = automaticRadiusOrNull!!
222222

223223
@Transient

0 commit comments

Comments
 (0)