From 804e21b871a56cbfa14311c197f3a4d5d49baeb0 Mon Sep 17 00:00:00 2001 From: luxferre Date: Mon, 25 May 2026 09:32:40 +0100 Subject: [PATCH] fix: handling for unset org contacts --- src/organisation/schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/organisation/schemas.py b/src/organisation/schemas.py index 3801195..68f147e 100644 --- a/src/organisation/schemas.py +++ b/src/organisation/schemas.py @@ -52,6 +52,6 @@ class OrgContactGetResponse(CustomBaseModel): class OrgOrgGetResponse(CustomBaseModel): name: str status: Status - owner_contact: OrgContactGetResponse - billing_contact: OrgContactGetResponse - security_contact: OrgContactGetResponse + owner_contact: Optional[OrgContactGetResponse] = None + billing_contact: Optional[OrgContactGetResponse] = None + security_contact: Optional[OrgContactGetResponse] = None