From 9ea032e3ad545cf40cf324b352f56a027cf8064d Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 11:10:43 +0000 Subject: [PATCH] fix(core/loader): Handle non-mapping YAML input gracefully --- core/nurse_scheduling/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nurse_scheduling/loader.py b/core/nurse_scheduling/loader.py index 14713c41..e137523c 100644 --- a/core/nurse_scheduling/loader.py +++ b/core/nurse_scheduling/loader.py @@ -51,4 +51,4 @@ def load_data(content: bytes) -> NurseSchedulingData: NurseSchedulingData: The validated scheduling data """ data = _load_yaml(content) - return NurseSchedulingData(**data) + return NurseSchedulingData.model_validate(data)