mirror of
https://github.com/langgenius/dify.git
synced 2026-01-08 07:14:14 +00:00
fix(api): Allow bool value in the FilterCondition of list operator
This commit is contained in:
@@ -35,7 +35,9 @@ class Order(StrEnum):
|
||||
class FilterCondition(BaseModel):
|
||||
key: str = ""
|
||||
comparison_operator: FilterOperator = FilterOperator.CONTAINS
|
||||
value: str | Sequence[str] = ""
|
||||
# the value is bool if the filter operator is comparing with
|
||||
# a boolean constant.
|
||||
value: str | Sequence[str] | bool = ""
|
||||
|
||||
|
||||
class FilterBy(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user