From 8d41f46db2e65882fc25801711e8b30b5aed3086 Mon Sep 17 00:00:00 2001 From: rrimpila Date: Tue, 30 Jun 2026 15:12:09 +0300 Subject: [PATCH] LABP-241 Make course unit ref for Thesis optional --- funidata_utils/schemas/sisu/thesis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funidata_utils/schemas/sisu/thesis.py b/funidata_utils/schemas/sisu/thesis.py index 9ad0fa6..f872589 100644 --- a/funidata_utils/schemas/sisu/thesis.py +++ b/funidata_utils/schemas/sisu/thesis.py @@ -23,8 +23,8 @@ class Thesis(BaseModel): thesisTypeUrn: Annotated[STRIPPED_STR, Field(pattern=sis_code_urn_pattern('thesis-type'))] responsibilityInfos: conset(PersonWithAttainmentAcceptorType, min_length=1) organisations: conset(OrganisationRoleShareBase, min_length=1) | None = None - courseUnitId: str - courseUnitGroupId: str + courseUnitId: str | None = None + courseUnitGroupId: str | None = None state: Literal['ATTAINED'] publicInspectionDate: datetime.date | None = None commissionType: Literal['COMMISSION', 'NONE']