Skip to content

Commit e772117

Browse files
authored
fix(ResponseSearch): refactor automaticRadius as String (#100)
fix(ResponseSearch): refactor automaticRadius as String
2 parents 2e25022 + 38c88d5 commit e772117

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: Float? = null,
100+
@SerialName(KeyAutomaticRadius) val automaticRadiusOrNull: String? = 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: Float
220+
public val automaticRadius: String
221221
get() = automaticRadiusOrNull!!
222222

223223
@Transient

0 commit comments

Comments
 (0)