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
This commit is contained in:
Oliver Jakoubek 2026-01-18 14:41:42 +01:00
commit d92a1b90c2
5 changed files with 66 additions and 5 deletions

View file

@ -12,5 +12,6 @@
"comments_count": 0,
"update_line": "",
"updated_at": "2026/01/14 10:00:00 +0000",
"created_at": "2026/01/10 09:00:00 +0000"
"created_at": "2026/01/10 09:00:00 +0000",
"tasks": [201, 202, 203]
}