mirror of
https://github.com/langgenius/dify.git
synced 2026-03-16 23:11:55 +08:00
fix(api): Allow bool value in the FilterCondition of list operator
This commit is contained in:
parent
383695b820
commit
ed8e06d1bf
@ -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):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user