Skip to content

Commit 2506284

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 633b185 commit 2506284

File tree

1 file changed

+3
-3
lines changed
  • client/src/commonMain/kotlin/com/algolia/client/model/search

1 file changed

+3
-3
lines changed

client/src/commonMain/kotlin/com/algolia/client/model/search/Rule.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import kotlinx.serialization.json.*
88
* Rule object.
99
*
1010
* @param objectID Unique identifier of a rule object.
11-
* @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).
1211
* @param consequence
12+
* @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).
1313
* @param description Description of the rule's purpose to help you distinguish between different rules.
1414
* @param enabled Whether the rule is active.
1515
* @param validity Time periods when the rule is active.
@@ -20,11 +20,11 @@ public data class Rule(
2020
/** Unique identifier of a rule object. */
2121
@SerialName(value = "objectID") val objectID: String,
2222

23+
@SerialName(value = "consequence") val consequence: Consequence,
24+
2325
/** 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). */
2426
@SerialName(value = "conditions") val conditions: List<Condition>? = null,
2527

26-
@SerialName(value = "consequence") val consequence: Consequence? = null,
27-
2828
/** Description of the rule's purpose to help you distinguish between different rules. */
2929
@SerialName(value = "description") val description: String? = null,
3030

0 commit comments

Comments
 (0)