Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/pyticktick/models/v2/responses/task_parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from __future__ import annotations

from datetime import datetime

from pydantic import Field

from pyticktick.models.v2.models import BaseModelV2
Expand All @@ -23,6 +25,7 @@ class BatchTaskParentRespValueV2(BaseModelV2):
validation_alias="childIds",
)
etag: ETag
modified_time: datetime = Field(validation_alias="modifiedTime")

Copilot AI Mar 23, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modified_time is newly added here but there’s no test asserting that modifiedTime is present in the batch-task-parent response and is parsed into a datetime. Adding a small unit/integration assertion would help catch API/format changes early (and would also reveal if this field is sometimes absent, in which case the model may need to allow None).

Suggested change
modified_time: datetime = Field(validation_alias="modifiedTime")
modified_time: datetime | None = Field(default=None, validation_alias="modifiedTime")

Copilot uses AI. Check for mistakes.


class BatchTaskParentRespV2(BaseModelV2):
Expand Down
Loading
Loading