fix(api): Allow bool value in the FilterCondition of list operator

This commit is contained in:
QuantumGhost
2025-07-31 12:24:18 +08:00
parent 383695b820
commit ed8e06d1bf

View File

@@ -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):