Skip to content

Commit a391d7c

Browse files
algolia-botmillotp
andcommitted
fix(specs): getObject return object (generated)
algolia/api-clients-automation#3446 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 695a8fe commit a391d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ public class SearchClient(
630630
* @param attributesToRetrieve Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won't be retrieved unless the request is authenticated with the admin API key.
631631
* @param requestOptions additional request configuration.
632632
*/
633-
public suspend fun getObject(indexName: String, objectID: String, attributesToRetrieve: List<String>? = null, requestOptions: RequestOptions? = null): Map<kotlin.String, String> {
633+
public suspend fun getObject(indexName: String, objectID: String, attributesToRetrieve: List<String>? = null, requestOptions: RequestOptions? = null): JsonObject {
634634
require(indexName.isNotBlank()) { "Parameter `indexName` is required when calling `getObject`." }
635635
require(objectID.isNotBlank()) { "Parameter `objectID` is required when calling `getObject`." }
636636
val requestConfig = RequestConfig(

0 commit comments

Comments
 (0)