From b3786c2db7f10dc6506bb05db36ef61258db976c Mon Sep 17 00:00:00 2001 From: Mirko Stamm Date: Fri, 16 Oct 2026 14:49:21 +0100 Subject: [PATCH 1/2] fix: include project_id in ReadTaskInProject schema --- models/schemas.py | 1 + 1 file changed, 1 insertion(+) diff --git a/models/schemas.py b/models/schemas.py index 61ae551..19fff23 100644 --- a/models/schemas.py +++ b/models/schemas.py @@ -126,6 +126,7 @@ class ReadTask(BaseModel): class ReadTaskInProject(BaseModel): task_id: int = Field(examples=[1]) + project_id: int = Field(examples=[1]) title: str = Field(examples=["TaskAPI"]) description: str | None = Field(default=None, examples=[]) date_exp: Optional[dt] From f2dbba3f7f17fdd42649c275debe9f104e518d0a Mon Sep 17 00:00:00 2001 From: Mirko Stamm Date: Fri, 16 Oct 2026 14:59:50 +0100 Subject: [PATCH 2/2] test: assert project_id in get_task_in_project response --- test/test_routers/test_task.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_routers/test_task.py b/test/test_routers/test_task.py index 4529516..50a01ad 100644 --- a/test/test_routers/test_task.py +++ b/test/test_routers/test_task.py @@ -125,6 +125,7 @@ async def test_get_task_in_project(async_client, auth_headers, clean_redis): "description", "date_exp", "state", + "project_id", "assigned_user", "task_label_links", ]