We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f0870 commit 710f354Copy full SHA for 710f354
src/eligibility_signposting_api/model/rules.py
@@ -105,9 +105,11 @@ class IterationRule(BaseModel):
105
@field_validator("rule_stop", mode="before")
106
@staticmethod
107
def parse_yn_to_bool(v: str | bool) -> bool:
108
+ if isinstance(v, bool):
109
+ return v
110
if isinstance(v, str):
- return v.upper() == "Y"
- return bool(v)
111
+ return v.strip().upper() == "Y"
112
+ return False
113
114
model_config = {"populate_by_name": True, "extra": "ignore"}
115
0 commit comments