diff --git a/api/core/workflow/nodes/list_operator/entities.py b/api/core/workflow/nodes/list_operator/entities.py index 550ed0b94c..e51a91f07f 100644 --- a/api/core/workflow/nodes/list_operator/entities.py +++ b/api/core/workflow/nodes/list_operator/entities.py @@ -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):