feat: fully defined response code descriptions

Only done on three endpoints. This is a lot of repeated text.
This commit is contained in:
Chris Milne 2026-06-11 16:02:51 +01:00
parent c2e035dede
commit 5d122a7690
4 changed files with 109 additions and 5 deletions

View file

@ -58,7 +58,7 @@ def get_org_model_body(
) -> type[Org]:
org_id: Optional[int] = getattr(request_model, "organisation_id", None)
if org_id is None:
raise OrgNotFoundException
raise OrgNotFoundException()
return get_org_model(db, request, org_id)