Skip to content

Commit 6f09216

Browse files
committed
fix(specs): recommend is optional (generated)
algolia/api-clients-automation#3967 Co-authored-by: algolia-bot <[email protected]>
1 parent 4fbc9ec commit 6f09216

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

algoliasearch/Models/Recommend/RecommendHit.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ public RecommendHit()
2828
/// Initializes a new instance of the RecommendHit class.
2929
/// </summary>
3030
/// <param name="objectID">Unique record identifier. (required).</param>
31-
/// <param name="score">Recommendation score. (required).</param>
32-
public RecommendHit(string objectID, double score)
31+
public RecommendHit(string objectID)
3332
{
3433
ObjectID = objectID ?? throw new ArgumentNullException(nameof(objectID));
35-
Score = score;
3634
AdditionalProperties = new Dictionary<string, object>();
3735
}
3836

@@ -74,7 +72,7 @@ public RecommendHit(string objectID, double score)
7472
/// </summary>
7573
/// <value>Recommendation score.</value>
7674
[JsonPropertyName("_score")]
77-
public double Score { get; set; }
75+
public double? Score { get; set; }
7876

7977
/// <summary>
8078
/// Gets or Sets additional properties

algoliasearch/Models/Recommend/TrendingFacetHit.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ public TrendingFacetHit() { }
2424
/// <summary>
2525
/// Initializes a new instance of the TrendingFacetHit class.
2626
/// </summary>
27-
/// <param name="score">Recommendation score. (required).</param>
2827
/// <param name="facetName">Facet attribute. To be used in combination with &#x60;facetValue&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
2928
/// <param name="facetValue">Facet value. To be used in combination with &#x60;facetName&#x60;. If specified, only recommendations matching the facet filter will be returned. (required).</param>
30-
public TrendingFacetHit(double score, string facetName, string facetValue)
29+
public TrendingFacetHit(string facetName, string facetValue)
3130
{
32-
Score = score;
3331
FacetName = facetName ?? throw new ArgumentNullException(nameof(facetName));
3432
FacetValue = facetValue ?? throw new ArgumentNullException(nameof(facetValue));
3533
}
@@ -39,7 +37,7 @@ public TrendingFacetHit(double score, string facetName, string facetValue)
3937
/// </summary>
4038
/// <value>Recommendation score.</value>
4139
[JsonPropertyName("_score")]
42-
public double Score { get; set; }
40+
public double? Score { get; set; }
4341

4442
/// <summary>
4543
/// Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.

0 commit comments

Comments
 (0)