checkvist-api/testdata/tasks/list.json
Oliver Jakoubek d92a1b90c2 Fix Task.tasks field type: rename Children []*Task to ChildIDs []int
The Checkvist API returns the 'tasks' field as an array of child task IDs
(integers), not as full Task objects. This was causing JSON unmarshal errors.

BREAKING CHANGE: Task.Children []*Task renamed to Task.ChildIDs []int
2026-01-18 14:41:42 +01:00

36 lines
787 B
JSON

[
{
"id": 101,
"checklist_id": 1,
"parent_id": 0,
"content": "First task",
"status": 0,
"position": 1,
"priority": 0,
"tags_as_text": "",
"due": "2026-01-20",
"assignee_ids": [],
"comments_count": 0,
"update_line": "",
"updated_at": "2026/01/14 10:00:00 +0000",
"created_at": "2026/01/10 09:00:00 +0000",
"tasks": [201, 202]
},
{
"id": 102,
"checklist_id": 1,
"parent_id": 0,
"content": "Second task",
"status": 1,
"position": 2,
"priority": 1,
"tags_as_text": "important, urgent",
"due": "",
"assignee_ids": [1, 2],
"comments_count": 3,
"update_line": "",
"updated_at": "2026/01/14 11:00:00 +0000",
"created_at": "2026/01/11 10:00:00 +0000",
"tasks": []
}
]