Skip to content

Commit 7e2b43f

Browse files
algolia-botkai687millotp
committed
fix(specs): condition cant be numeric filter (generated)
algolia/api-clients-automation#4726 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent b5ba822 commit 7e2b43f

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import kotlinx.serialization.json.*
1111
* @param anchoring
1212
* @param alternatives Whether the pattern should match plurals, synonyms, and typos.
1313
* @param context An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
14-
* @param filters Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
14+
* @param filters Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters.
1515
*/
1616
@Serializable
1717
public data class Condition(
@@ -27,6 +27,6 @@ public data class Condition(
2727
/** An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters. */
2828
@SerialName(value = "context") val context: String? = null,
2929

30-
/** Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. */
30+
/** Filters that trigger the rule. You can add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter. You can't combine multiple filters with `OR` and you can't use numeric filters. */
3131
@SerialName(value = "filters") val filters: String? = null,
3232
)

0 commit comments

Comments
 (0)