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 633b185 commit 2506284
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import kotlinx.serialization.json.*
* Rule object.
*
* @param objectID Unique identifier of a rule object.
* @param conditions 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).
* @param consequence
* @param conditions 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).
* @param description Description of the rule's purpose to help you distinguish between different rules.
* @param enabled Whether the rule is active.
* @param validity Time periods when the rule is active.
Expand All @@ -20,11 +20,11 @@ public data class Rule(
/** Unique identifier of a rule object. */
@SerialName(value = "objectID") val objectID: String,

@SerialName(value = "consequence") val consequence: Consequence,

/** 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). */
@SerialName(value = "conditions") val conditions: List<Condition>? = null,

@SerialName(value = "consequence") val consequence: Consequence? = null,

/** Description of the rule's purpose to help you distinguish between different rules. */
@SerialName(value = "description") val description: String? = null,

Expand Down

0 comments on commit 2506284

Please sign in to comment.