From 0455c150de45efbdb031a61455c724eae6c545bb Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Wed, 23 Oct 2024 09:54:13 +0000 Subject: [PATCH] fix(specs): results in getObjects is required (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4024 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- algoliasearch/Models/Search/GetObjectsResponse.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/algoliasearch/Models/Search/GetObjectsResponse.cs b/algoliasearch/Models/Search/GetObjectsResponse.cs index 9d78a2e86..790cf1d4f 100644 --- a/algoliasearch/Models/Search/GetObjectsResponse.cs +++ b/algoliasearch/Models/Search/GetObjectsResponse.cs @@ -19,8 +19,15 @@ public partial class GetObjectsResponse /// /// Initializes a new instance of the GetObjectsResponse class. /// - public GetObjectsResponse() + [JsonConstructor] + public GetObjectsResponse() { } + /// + /// Initializes a new instance of the GetObjectsResponse class. + /// + /// Retrieved records. (required). + public GetObjectsResponse(List results) { + Results = results ?? throw new ArgumentNullException(nameof(results)); } ///