From ed8e06d1bf0e4a21ae665d3a5a70d5a95a8457b8 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Thu, 31 Jul 2025 12:24:18 +0800 Subject: [PATCH] fix(api): Allow `bool` value in the `FilterCondition` of list operator --- api/core/workflow/nodes/list_operator/entities.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):