Skip to content

Commit 474482e

Browse files
fix(specs): consequence is required when saving rules (generated)
algolia/api-clients-automation#4146 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 0100fb2 commit 474482e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

algoliasearch/Models/Search/Rule.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ public Rule() { }
2525
/// Initializes a new instance of the Rule class.
2626
/// </summary>
2727
/// <param name="objectID">Unique identifier of a rule object. (required).</param>
28-
public Rule(string objectID)
28+
/// <param name="consequence">consequence (required).</param>
29+
public Rule(string objectID, Consequence consequence)
2930
{
3031
ObjectID = objectID ?? throw new ArgumentNullException(nameof(objectID));
32+
Consequence = consequence ?? throw new ArgumentNullException(nameof(consequence));
3133
}
3234

3335
/// <summary>

0 commit comments

Comments
 (0)