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] 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", ]