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 <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 35146d0 commit 45b238c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algoliasearch/search/models/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Rule(BaseModel):
""" Unique identifier of a rule object. """
conditions: Optional[List[Condition]] = None
""" Conditions that trigger a rule. Some consequences require specific conditions or don't require any condition. For more information, see [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions). """
consequence: Optional[Consequence] = None
consequence: Consequence
description: Optional[str] = None
""" Description of the rule's purpose to help you distinguish between different rules. """
enabled: Optional[bool] = None
Expand Down

0 comments on commit 45b238c

Please sign in to comment.