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:
parent
536ccf6ccf
commit
d92a1b90c2
5 changed files with 66 additions and 5 deletions
3
testdata/tasks/single.json
vendored
3
testdata/tasks/single.json
vendored
|
|
@ -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]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue