Skip to content

Commit d729ab3

Browse files
fix(specs): remove unnecessary required fields (generated)
algolia/api-clients-automation#5959 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Mario-Alexandru Dan <marioalexandrudan@gmail.com>
1 parent daeff1d commit d729ab3

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

algoliasearch/Models/Search/BrowseResponse.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@ public BrowseResponse() { }
2626
/// Initializes a new instance of the BrowseResponse class.
2727
/// </summary>
2828
/// <param name="hits">Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting. (required).</param>
29-
/// <param name="query">Search query. (required) (default to "").</param>
30-
/// <param name="varParams">URL-encoded string of all search parameters. (required).</param>
31-
public BrowseResponse(List<T> hits, string query, string varParams)
29+
public BrowseResponse(List<T> hits)
3230
{
3331
Hits = hits ?? throw new ArgumentNullException(nameof(hits));
34-
Query = query ?? throw new ArgumentNullException(nameof(query));
35-
Params = varParams ?? throw new ArgumentNullException(nameof(varParams));
3632
}
3733

3834
/// <summary>

algoliasearch/Models/Search/SearchResponse.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@ public SearchResponse()
2929
/// Initializes a new instance of the SearchResponse class.
3030
/// </summary>
3131
/// <param name="hits">Search results (hits). Hits are records from your index that match the search criteria, augmented with additional attributes, such as, for highlighting. (required).</param>
32-
/// <param name="query">Search query. (required) (default to "").</param>
33-
/// <param name="varParams">URL-encoded string of all search parameters. (required).</param>
34-
public SearchResponse(List<T> hits, string query, string varParams)
32+
public SearchResponse(List<T> hits)
3533
{
3634
Hits = hits ?? throw new ArgumentNullException(nameof(hits));
37-
Query = query ?? throw new ArgumentNullException(nameof(query));
38-
Params = varParams ?? throw new ArgumentNullException(nameof(varParams));
3935
AdditionalProperties = new Dictionary<string, object>();
4036
}
4137

0 commit comments

Comments
 (0)