Skip to content

Commit 777c0ec

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 deef7c7 commit 777c0ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: algoliasearch/search/models/condition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Condition(BaseModel):
4747
context: Optional[str] = None
4848
""" 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. """
4949
filters: Optional[str] = None
50-
""" 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. """
50+
""" 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. """
5151

5252
@field_validator("context")
5353
def context_validate_regular_expression(cls, value):

0 commit comments

Comments
 (0)