Skip to content

Commit c18dc0a

Browse files
authored
Make bool lower to comply with legacy behavior
Make
1 parent 634bccb commit c18dc0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contentctl/objects/lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Lookup(SecurityContentObject, abc.ABC):
7575
# as a BOOL and this causes parsing to fail. As such, we will always
7676
# convert this to a string if it is passed as a bool
7777
default_match: Annotated[
78-
str, BeforeValidator(lambda dm: str(dm) if isinstance(dm, bool) else dm)
78+
str, BeforeValidator(lambda dm: str(dm).lower() if isinstance(dm, bool) else dm)
7979
] = Field(
8080
default="",
8181
description="This field is given a default value of ''"

0 commit comments

Comments
 (0)