Skip to content

Commit

Permalink
fix(specs): consequence is required when saving rules (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4146

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 0100fb2 commit 474482e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion algoliasearch/Models/Search/Rule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ public Rule() { }
/// Initializes a new instance of the Rule class.
/// </summary>
/// <param name="objectID">Unique identifier of a rule object. (required).</param>
public Rule(string objectID)
/// <param name="consequence">consequence (required).</param>
public Rule(string objectID, Consequence consequence)
{
ObjectID = objectID ?? throw new ArgumentNullException(nameof(objectID));
Consequence = consequence ?? throw new ArgumentNullException(nameof(consequence));
}

/// <summary>
Expand Down

0 comments on commit 474482e

Please sign in to comment.