Skip to content

Commit

Permalink
fix(specs): results in getObjects is required (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4024

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Oct 23, 2024
1 parent 3a971ab commit 0455c15
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion algoliasearch/Models/Search/GetObjectsResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ public partial class GetObjectsResponse<T>
/// <summary>
/// Initializes a new instance of the GetObjectsResponse class.
/// </summary>
public GetObjectsResponse()
[JsonConstructor]
public GetObjectsResponse() { }
/// <summary>
/// Initializes a new instance of the GetObjectsResponse class.
/// </summary>
/// <param name="results">Retrieved records. (required).</param>
public GetObjectsResponse(List<T> results)
{
Results = results ?? throw new ArgumentNullException(nameof(results));
}

/// <summary>
Expand Down

0 comments on commit 0455c15

Please sign in to comment.