@type32/tasks 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +262 -27
- package/SPEC.md +269 -0
- package/conformance/errors.yaml +610 -0
- package/conformance/valid.yaml +194 -0
- package/dist/index.d.mts +114 -4
- package/dist/index.mjs +301 -55
- package/llms.txt +43 -0
- package/package.json +8 -2
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
# Deliberately broken inputs. Shared by every implementation (TypeScript today, Rust next).
|
|
2
|
+
#
|
|
3
|
+
# Each case: `name`, `format` (json | yaml | toml | markdown | ics), `input` text, and one of:
|
|
4
|
+
# issues: reading throws, reporting exactly these paths (any order). [] is the document root.
|
|
5
|
+
# dropped: (ics only) import succeeds but reports exactly these dropped paths.
|
|
6
|
+
# Messages are deliberately not compared: wording is per implementation, paths are the contract.
|
|
7
|
+
# Shape errors are reported before cross-field rules run, so each case breaks one thing.
|
|
8
|
+
|
|
9
|
+
# --- Syntax ---
|
|
10
|
+
- name: json trailing comma
|
|
11
|
+
format: json
|
|
12
|
+
input: '{"version":"1.0","tasks":[],}'
|
|
13
|
+
issues: [[]]
|
|
14
|
+
- name: json empty input
|
|
15
|
+
format: json
|
|
16
|
+
input: ""
|
|
17
|
+
issues: [[]]
|
|
18
|
+
- name: json single quotes
|
|
19
|
+
format: json
|
|
20
|
+
input: "{'version':'1.0','tasks':[]}"
|
|
21
|
+
issues: [[]]
|
|
22
|
+
- name: yaml unclosed flow sequence
|
|
23
|
+
format: yaml
|
|
24
|
+
input: |
|
|
25
|
+
version: "1.0"
|
|
26
|
+
tasks: [
|
|
27
|
+
issues: [[]]
|
|
28
|
+
- name: yaml tab indentation
|
|
29
|
+
format: yaml
|
|
30
|
+
input: "version: \"1.0\"\ntasks:\n\t- { id: a, title: A, updatedAt: 2026-11-09T10:00:00Z }\n"
|
|
31
|
+
issues: [[]]
|
|
32
|
+
- name: yaml duplicate key
|
|
33
|
+
format: yaml
|
|
34
|
+
input: |
|
|
35
|
+
version: "1.0"
|
|
36
|
+
version: "1.1"
|
|
37
|
+
tasks: []
|
|
38
|
+
issues: [[]]
|
|
39
|
+
- name: yaml two documents
|
|
40
|
+
format: yaml
|
|
41
|
+
input: |
|
|
42
|
+
version: "1.0"
|
|
43
|
+
tasks: []
|
|
44
|
+
---
|
|
45
|
+
version: "1.0"
|
|
46
|
+
tasks: []
|
|
47
|
+
issues: [[]]
|
|
48
|
+
- name: toml duplicate table
|
|
49
|
+
format: toml
|
|
50
|
+
input: |
|
|
51
|
+
version = "1.0"
|
|
52
|
+
tasks = []
|
|
53
|
+
[x-app]
|
|
54
|
+
a = 1
|
|
55
|
+
[x-app]
|
|
56
|
+
b = 2
|
|
57
|
+
issues: [[]]
|
|
58
|
+
- name: toml unterminated string
|
|
59
|
+
format: toml
|
|
60
|
+
input: |
|
|
61
|
+
version = "1.0
|
|
62
|
+
tasks = []
|
|
63
|
+
issues: [[]]
|
|
64
|
+
- name: toml integer too large to keep exactly
|
|
65
|
+
format: toml
|
|
66
|
+
input: |
|
|
67
|
+
version = "1.0"
|
|
68
|
+
tasks = []
|
|
69
|
+
big = 9007199254740993
|
|
70
|
+
issues: [[]]
|
|
71
|
+
|
|
72
|
+
# --- Document root ---
|
|
73
|
+
- name: root is a list
|
|
74
|
+
format: json
|
|
75
|
+
input: "[]"
|
|
76
|
+
issues: [[]]
|
|
77
|
+
- name: root is a string
|
|
78
|
+
format: yaml
|
|
79
|
+
input: hello
|
|
80
|
+
issues: [[]]
|
|
81
|
+
- name: empty yaml document
|
|
82
|
+
format: yaml
|
|
83
|
+
input: ""
|
|
84
|
+
issues: [[]]
|
|
85
|
+
- name: missing version
|
|
86
|
+
format: yaml
|
|
87
|
+
input: "tasks: []"
|
|
88
|
+
issues: [[version]]
|
|
89
|
+
- name: future major version
|
|
90
|
+
format: yaml
|
|
91
|
+
input: |
|
|
92
|
+
version: "2.0"
|
|
93
|
+
tasks: []
|
|
94
|
+
issues: [[version]]
|
|
95
|
+
- name: version as a number (unquoted yaml)
|
|
96
|
+
format: yaml
|
|
97
|
+
input: |
|
|
98
|
+
version: 1.0
|
|
99
|
+
tasks: []
|
|
100
|
+
issues: [[version]]
|
|
101
|
+
- name: version as a number (toml float)
|
|
102
|
+
format: toml
|
|
103
|
+
input: |
|
|
104
|
+
version = 1.0
|
|
105
|
+
tasks = []
|
|
106
|
+
issues: [[version]]
|
|
107
|
+
- name: missing tasks
|
|
108
|
+
format: yaml
|
|
109
|
+
input: 'version: "1.0"'
|
|
110
|
+
issues: [[tasks]]
|
|
111
|
+
- name: tasks is a map
|
|
112
|
+
format: yaml
|
|
113
|
+
input: |
|
|
114
|
+
version: "1.0"
|
|
115
|
+
tasks: { a: 1 }
|
|
116
|
+
issues: [[tasks]]
|
|
117
|
+
|
|
118
|
+
# --- Task shape ---
|
|
119
|
+
- name: task without id
|
|
120
|
+
format: yaml
|
|
121
|
+
input: |
|
|
122
|
+
version: "1.0"
|
|
123
|
+
tasks: [{ title: A, updatedAt: 2026-11-09T10:00:00Z }]
|
|
124
|
+
issues: [[tasks, 0, id]]
|
|
125
|
+
- name: empty id
|
|
126
|
+
format: yaml
|
|
127
|
+
input: |
|
|
128
|
+
version: "1.0"
|
|
129
|
+
tasks: [{ id: "", title: A, updatedAt: 2026-11-09T10:00:00Z }]
|
|
130
|
+
issues: [[tasks, 0, id]]
|
|
131
|
+
- name: numeric id
|
|
132
|
+
format: yaml
|
|
133
|
+
input: |
|
|
134
|
+
version: "1.0"
|
|
135
|
+
tasks: [{ id: 42, title: A, updatedAt: 2026-11-09T10:00:00Z }]
|
|
136
|
+
issues: [[tasks, 0, id]]
|
|
137
|
+
- name: task without title
|
|
138
|
+
format: yaml
|
|
139
|
+
input: |
|
|
140
|
+
version: "1.0"
|
|
141
|
+
tasks: [{ id: a, updatedAt: 2026-11-09T10:00:00Z }]
|
|
142
|
+
issues: [[tasks, 0, title]]
|
|
143
|
+
- name: task without updatedAt
|
|
144
|
+
format: yaml
|
|
145
|
+
input: |
|
|
146
|
+
version: "1.0"
|
|
147
|
+
tasks: [{ id: a, title: A }]
|
|
148
|
+
issues: [[tasks, 0, updatedAt]]
|
|
149
|
+
- name: updatedAt without Z
|
|
150
|
+
format: yaml
|
|
151
|
+
input: |
|
|
152
|
+
version: "1.0"
|
|
153
|
+
tasks: [{ id: a, title: A, updatedAt: 2026-11-09T10:00:00 }]
|
|
154
|
+
issues: [[tasks, 0, updatedAt]]
|
|
155
|
+
- name: updatedAt with an offset
|
|
156
|
+
format: yaml
|
|
157
|
+
input: |
|
|
158
|
+
version: "1.0"
|
|
159
|
+
tasks: [{ id: a, title: A, updatedAt: "2026-11-09T10:00:00+01:00" }]
|
|
160
|
+
issues: [[tasks, 0, updatedAt]]
|
|
161
|
+
- name: month 13
|
|
162
|
+
format: yaml
|
|
163
|
+
input: |
|
|
164
|
+
version: "1.0"
|
|
165
|
+
tasks: [{ id: a, title: A, start: 2026-13-01, updatedAt: 2026-11-09T10:00:00Z }]
|
|
166
|
+
issues: [[tasks, 0, start]]
|
|
167
|
+
- name: 30 February
|
|
168
|
+
format: yaml
|
|
169
|
+
input: |
|
|
170
|
+
version: "1.0"
|
|
171
|
+
tasks: [{ id: a, title: A, due: 2026-02-30, updatedAt: 2026-11-09T10:00:00Z }]
|
|
172
|
+
issues: [[tasks, 0, due]]
|
|
173
|
+
- name: local time with an offset
|
|
174
|
+
format: yaml
|
|
175
|
+
input: |
|
|
176
|
+
version: "1.0"
|
|
177
|
+
tasks: [{ id: a, title: A, due: "2026-11-10T09:30+01:00", updatedAt: 2026-11-09T10:00:00Z }]
|
|
178
|
+
issues: [[tasks, 0, due]]
|
|
179
|
+
- name: natural-language date
|
|
180
|
+
format: yaml
|
|
181
|
+
input: |
|
|
182
|
+
version: "1.0"
|
|
183
|
+
tasks: [{ id: a, title: A, due: tomorrow, updatedAt: 2026-11-09T10:00:00Z }]
|
|
184
|
+
issues: [[tasks, 0, due]]
|
|
185
|
+
- name: duration in months
|
|
186
|
+
format: yaml
|
|
187
|
+
input: |
|
|
188
|
+
version: "1.0"
|
|
189
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, duration: P1M, updatedAt: 2026-11-09T10:00:00Z }]
|
|
190
|
+
issues: [[tasks, 0, duration]]
|
|
191
|
+
- name: unknown time zone
|
|
192
|
+
format: yaml
|
|
193
|
+
input: |
|
|
194
|
+
version: "1.0"
|
|
195
|
+
tasks: [{ id: a, title: A, start: 2026-11-10T09:30, timeZone: Mars/Olympus, updatedAt: 2026-11-09T10:00:00Z }]
|
|
196
|
+
issues: [[tasks, 0, timeZone]]
|
|
197
|
+
- name: dependsOn as a string
|
|
198
|
+
format: yaml
|
|
199
|
+
input: |
|
|
200
|
+
version: "1.0"
|
|
201
|
+
tasks: [{ id: a, title: A, dependsOn: b, updatedAt: 2026-11-09T10:00:00Z }]
|
|
202
|
+
issues: [[tasks, 0, dependsOn]]
|
|
203
|
+
- name: values as a list
|
|
204
|
+
format: yaml
|
|
205
|
+
input: |
|
|
206
|
+
version: "1.0"
|
|
207
|
+
tasks: [{ id: a, title: A, values: [done], updatedAt: 2026-11-09T10:00:00Z }]
|
|
208
|
+
issues: [[tasks, 0, values]]
|
|
209
|
+
- name: value as a map
|
|
210
|
+
format: yaml
|
|
211
|
+
input: |
|
|
212
|
+
version: "1.0"
|
|
213
|
+
tasks: [{ id: a, title: A, values: { status: { id: done } }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
214
|
+
issues: [[tasks, 0, values, status]]
|
|
215
|
+
|
|
216
|
+
# --- Recurrence shape ---
|
|
217
|
+
- name: hourly frequency
|
|
218
|
+
format: yaml
|
|
219
|
+
input: |
|
|
220
|
+
version: "1.0"
|
|
221
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: hourly }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
222
|
+
issues: [[tasks, 0, recurrence, freq]]
|
|
223
|
+
- name: interval 0
|
|
224
|
+
format: yaml
|
|
225
|
+
input: |
|
|
226
|
+
version: "1.0"
|
|
227
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: daily, interval: 0 }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
228
|
+
issues: [[tasks, 0, recurrence, interval]]
|
|
229
|
+
- name: weekday spelled out
|
|
230
|
+
format: yaml
|
|
231
|
+
input: |
|
|
232
|
+
version: "1.0"
|
|
233
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: weekly, byDay: [{ day: monday }] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
234
|
+
issues: [[tasks, 0, recurrence, byDay, 0, day]]
|
|
235
|
+
- name: nth 0
|
|
236
|
+
format: yaml
|
|
237
|
+
input: |
|
|
238
|
+
version: "1.0"
|
|
239
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: monthly, byDay: [{ day: mo, nth: 0 }] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
240
|
+
issues: [[tasks, 0, recurrence, byDay, 0, nth]]
|
|
241
|
+
- name: month day 32
|
|
242
|
+
format: yaml
|
|
243
|
+
input: |
|
|
244
|
+
version: "1.0"
|
|
245
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: monthly, byMonthDay: [32] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
246
|
+
issues: [[tasks, 0, recurrence, byMonthDay, 0]]
|
|
247
|
+
- name: month 13 in a rule
|
|
248
|
+
format: yaml
|
|
249
|
+
input: |
|
|
250
|
+
version: "1.0"
|
|
251
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: yearly, byMonth: [13] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
252
|
+
issues: [[tasks, 0, recurrence, byMonth, 0]]
|
|
253
|
+
- name: fractional count
|
|
254
|
+
format: yaml
|
|
255
|
+
input: |
|
|
256
|
+
version: "1.0"
|
|
257
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: daily, count: 1.5 }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
258
|
+
issues: [[tasks, 0, recurrence, count]]
|
|
259
|
+
- name: unsupported rule part
|
|
260
|
+
format: yaml
|
|
261
|
+
input: |
|
|
262
|
+
version: "1.0"
|
|
263
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: monthly, bySetPos: [-1] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
264
|
+
issues: [[tasks, 0, recurrence]]
|
|
265
|
+
- name: empty byDay
|
|
266
|
+
format: yaml
|
|
267
|
+
input: |
|
|
268
|
+
version: "1.0"
|
|
269
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: weekly, byDay: [] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
270
|
+
issues: [[tasks, 0, recurrence, byDay]]
|
|
271
|
+
|
|
272
|
+
# --- References ---
|
|
273
|
+
- name: duplicate task id
|
|
274
|
+
format: yaml
|
|
275
|
+
input: |
|
|
276
|
+
version: "1.0"
|
|
277
|
+
tasks:
|
|
278
|
+
- { id: a, title: A, updatedAt: 2026-11-09T10:00:00Z }
|
|
279
|
+
- { id: a, title: B, updatedAt: 2026-11-09T10:00:00Z }
|
|
280
|
+
issues: [[tasks, 1, id]]
|
|
281
|
+
- name: unknown list
|
|
282
|
+
format: yaml
|
|
283
|
+
input: |
|
|
284
|
+
version: "1.0"
|
|
285
|
+
tasks: [{ id: a, title: A, listId: nope, updatedAt: 2026-11-09T10:00:00Z }]
|
|
286
|
+
issues: [[tasks, 0, listId]]
|
|
287
|
+
- name: unknown parent
|
|
288
|
+
format: yaml
|
|
289
|
+
input: |
|
|
290
|
+
version: "1.0"
|
|
291
|
+
tasks: [{ id: a, title: A, parentId: nope, updatedAt: 2026-11-09T10:00:00Z }]
|
|
292
|
+
issues: [[tasks, 0, parentId]]
|
|
293
|
+
- name: unknown dependency
|
|
294
|
+
format: yaml
|
|
295
|
+
input: |
|
|
296
|
+
version: "1.0"
|
|
297
|
+
tasks: [{ id: a, title: A, dependsOn: [nope], updatedAt: 2026-11-09T10:00:00Z }]
|
|
298
|
+
issues: [[tasks, 0, dependsOn, 0]]
|
|
299
|
+
- name: depends on itself
|
|
300
|
+
format: yaml
|
|
301
|
+
input: |
|
|
302
|
+
version: "1.0"
|
|
303
|
+
tasks: [{ id: a, title: A, dependsOn: [a], updatedAt: 2026-11-09T10:00:00Z }]
|
|
304
|
+
issues: [[tasks, 0, dependsOn]]
|
|
305
|
+
- name: parent cycle
|
|
306
|
+
format: yaml
|
|
307
|
+
input: |
|
|
308
|
+
version: "1.0"
|
|
309
|
+
tasks:
|
|
310
|
+
- { id: a, title: A, parentId: b, updatedAt: 2026-11-09T10:00:00Z }
|
|
311
|
+
- { id: b, title: B, parentId: a, updatedAt: 2026-11-09T10:00:00Z }
|
|
312
|
+
issues: [[tasks, 0, parentId]]
|
|
313
|
+
- name: list cycle
|
|
314
|
+
format: yaml
|
|
315
|
+
input: |
|
|
316
|
+
version: "1.0"
|
|
317
|
+
lists:
|
|
318
|
+
- { id: x, title: X, parentId: y, updatedAt: 2026-11-09T10:00:00Z }
|
|
319
|
+
- { id: y, title: Y, parentId: x, updatedAt: 2026-11-09T10:00:00Z }
|
|
320
|
+
tasks: []
|
|
321
|
+
issues: [[lists, 0, parentId]]
|
|
322
|
+
- name: bad list color
|
|
323
|
+
format: yaml
|
|
324
|
+
input: |
|
|
325
|
+
version: "1.0"
|
|
326
|
+
lists: [{ id: x, title: X, color: red, updatedAt: 2026-11-09T10:00:00Z }]
|
|
327
|
+
tasks: []
|
|
328
|
+
issues: [[lists, 0, color]]
|
|
329
|
+
|
|
330
|
+
# --- Time rules ---
|
|
331
|
+
- name: end without start
|
|
332
|
+
format: yaml
|
|
333
|
+
input: |
|
|
334
|
+
version: "1.0"
|
|
335
|
+
tasks: [{ id: a, title: A, end: 2026-11-10, updatedAt: 2026-11-09T10:00:00Z }]
|
|
336
|
+
issues: [[tasks, 0, end]]
|
|
337
|
+
- name: end before start
|
|
338
|
+
format: yaml
|
|
339
|
+
input: |
|
|
340
|
+
version: "1.0"
|
|
341
|
+
tasks: [{ id: a, title: A, start: 2026-11-10T10:00, end: 2026-11-10T09:59:59, updatedAt: 2026-11-09T10:00:00Z }]
|
|
342
|
+
issues: [[tasks, 0, end]]
|
|
343
|
+
- name: end and duration
|
|
344
|
+
format: yaml
|
|
345
|
+
input: |
|
|
346
|
+
version: "1.0"
|
|
347
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, end: 2026-11-11, duration: P1D, updatedAt: 2026-11-09T10:00:00Z }]
|
|
348
|
+
issues: [[tasks, 0, duration]]
|
|
349
|
+
- name: date end on a timed start
|
|
350
|
+
format: yaml
|
|
351
|
+
input: |
|
|
352
|
+
version: "1.0"
|
|
353
|
+
tasks: [{ id: a, title: A, start: 2026-11-10T09:00, end: 2026-11-11, updatedAt: 2026-11-09T10:00:00Z }]
|
|
354
|
+
issues: [[tasks, 0, end]]
|
|
355
|
+
- name: hour duration on an all-day start
|
|
356
|
+
format: yaml
|
|
357
|
+
input: |
|
|
358
|
+
version: "1.0"
|
|
359
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, duration: PT1H, updatedAt: 2026-11-09T10:00:00Z }]
|
|
360
|
+
issues: [[tasks, 0, duration]]
|
|
361
|
+
- name: recurrence without start or due
|
|
362
|
+
format: yaml
|
|
363
|
+
input: |
|
|
364
|
+
version: "1.0"
|
|
365
|
+
tasks: [{ id: a, title: A, recurrence: { freq: daily }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
366
|
+
issues: [[tasks, 0, recurrence]]
|
|
367
|
+
- name: count and until
|
|
368
|
+
format: yaml
|
|
369
|
+
input: |
|
|
370
|
+
version: "1.0"
|
|
371
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: daily, count: 2, until: 2026-12-01 }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
372
|
+
issues: [[tasks, 0, recurrence]]
|
|
373
|
+
- name: until in another form than start
|
|
374
|
+
format: yaml
|
|
375
|
+
input: |
|
|
376
|
+
version: "1.0"
|
|
377
|
+
tasks: [{ id: a, title: A, start: 2026-11-10T09:00, recurrence: { freq: daily, until: 2026-12-01 }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
378
|
+
issues: [[tasks, 0, recurrence, until]]
|
|
379
|
+
- name: nth on a weekly rule
|
|
380
|
+
format: yaml
|
|
381
|
+
input: |
|
|
382
|
+
version: "1.0"
|
|
383
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, recurrence: { freq: weekly, byDay: [{ day: tu, nth: 1 }] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
384
|
+
issues: [[tasks, 0, recurrence, byDay, 0, nth]]
|
|
385
|
+
- name: excluded dates without a rule
|
|
386
|
+
format: yaml
|
|
387
|
+
input: |
|
|
388
|
+
version: "1.0"
|
|
389
|
+
tasks: [{ id: a, title: A, start: 2026-11-10, excludedDates: [2026-11-11], updatedAt: 2026-11-09T10:00:00Z }]
|
|
390
|
+
issues: [[tasks, 0, excludedDates, 0]]
|
|
391
|
+
|
|
392
|
+
# --- Fields and values ---
|
|
393
|
+
- name: value for an undefined field
|
|
394
|
+
format: yaml
|
|
395
|
+
input: |
|
|
396
|
+
version: "1.0"
|
|
397
|
+
tasks: [{ id: a, title: A, values: { estimate: 3 }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
398
|
+
issues: [[tasks, 0, values, estimate]]
|
|
399
|
+
- name: unknown status
|
|
400
|
+
format: yaml
|
|
401
|
+
input: |
|
|
402
|
+
version: "1.0"
|
|
403
|
+
tasks: [{ id: a, title: A, values: { status: shipped }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
404
|
+
issues: [[tasks, 0, values, status]]
|
|
405
|
+
- name: tags as a string
|
|
406
|
+
format: yaml
|
|
407
|
+
input: |
|
|
408
|
+
version: "1.0"
|
|
409
|
+
tasks: [{ id: a, title: A, values: { tags: work }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
410
|
+
issues: [[tasks, 0, values, tags]]
|
|
411
|
+
- name: duplicate tags
|
|
412
|
+
format: yaml
|
|
413
|
+
input: |
|
|
414
|
+
version: "1.0"
|
|
415
|
+
tasks: [{ id: a, title: A, values: { tags: [a, a] }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
416
|
+
issues: [[tasks, 0, values, tags]]
|
|
417
|
+
- name: progress over 100
|
|
418
|
+
format: yaml
|
|
419
|
+
input: |
|
|
420
|
+
version: "1.0"
|
|
421
|
+
tasks: [{ id: a, title: A, values: { progress: 101 }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
422
|
+
issues: [[tasks, 0, values, progress]]
|
|
423
|
+
- name: NaN number
|
|
424
|
+
format: yaml
|
|
425
|
+
input: |
|
|
426
|
+
version: "1.0"
|
|
427
|
+
tasks: [{ id: a, title: A, values: { progress: .nan }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
428
|
+
issues: [[tasks, 0, values, progress]]
|
|
429
|
+
- name: relative url
|
|
430
|
+
format: yaml
|
|
431
|
+
input: |
|
|
432
|
+
version: "1.0"
|
|
433
|
+
fields: [{ id: link, title: Link, type: url, updatedAt: 2026-11-09T10:00:00Z }]
|
|
434
|
+
tasks: [{ id: a, title: A, values: { link: /invoices/42 }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
435
|
+
issues: [[tasks, 0, values, link]]
|
|
436
|
+
- name: yes is not a boolean
|
|
437
|
+
format: yaml
|
|
438
|
+
input: |
|
|
439
|
+
version: "1.0"
|
|
440
|
+
fields: [{ id: billable, title: Billable, type: boolean, updatedAt: 2026-11-09T10:00:00Z }]
|
|
441
|
+
tasks: [{ id: a, title: A, values: { billable: yes }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
442
|
+
issues: [[tasks, 0, values, billable]]
|
|
443
|
+
- name: date field with a UTC time
|
|
444
|
+
format: yaml
|
|
445
|
+
input: |
|
|
446
|
+
version: "1.0"
|
|
447
|
+
fields: [{ id: signed, title: Signed, type: date, updatedAt: 2026-11-09T10:00:00Z }]
|
|
448
|
+
tasks: [{ id: a, title: A, values: { signed: 2026-11-09T10:00:00Z }, updatedAt: 2026-11-09T10:00:00Z }]
|
|
449
|
+
issues: [[tasks, 0, values, signed]]
|
|
450
|
+
- name: custom field without type
|
|
451
|
+
format: yaml
|
|
452
|
+
input: |
|
|
453
|
+
version: "1.0"
|
|
454
|
+
fields: [{ id: x, title: X, updatedAt: 2026-11-09T10:00:00Z }]
|
|
455
|
+
tasks: []
|
|
456
|
+
issues: [[fields, 0, type]]
|
|
457
|
+
- name: custom field without title and updatedAt
|
|
458
|
+
format: yaml
|
|
459
|
+
input: |
|
|
460
|
+
version: "1.0"
|
|
461
|
+
fields: [{ id: x, type: text }]
|
|
462
|
+
tasks: []
|
|
463
|
+
issues: [[fields, 0, title], [fields, 0, updatedAt]]
|
|
464
|
+
- name: options on a text field
|
|
465
|
+
format: yaml
|
|
466
|
+
input: |
|
|
467
|
+
version: "1.0"
|
|
468
|
+
fields: [{ id: x, title: X, type: text, options: [], updatedAt: 2026-11-09T10:00:00Z }]
|
|
469
|
+
tasks: []
|
|
470
|
+
issues: [[fields, 0, options]]
|
|
471
|
+
- name: categories on a number field
|
|
472
|
+
format: yaml
|
|
473
|
+
input: |
|
|
474
|
+
version: "1.0"
|
|
475
|
+
fields: [{ id: x, title: X, type: number, categories: [a], updatedAt: 2026-11-09T10:00:00Z }]
|
|
476
|
+
tasks: []
|
|
477
|
+
issues: [[fields, 0, categories]]
|
|
478
|
+
- name: min above max
|
|
479
|
+
format: yaml
|
|
480
|
+
input: |
|
|
481
|
+
version: "1.0"
|
|
482
|
+
fields: [{ id: x, title: X, type: number, min: 5, max: 1, updatedAt: 2026-11-09T10:00:00Z }]
|
|
483
|
+
tasks: []
|
|
484
|
+
issues: [[fields, 0, max]]
|
|
485
|
+
- name: duplicate category
|
|
486
|
+
format: yaml
|
|
487
|
+
input: |
|
|
488
|
+
version: "1.0"
|
|
489
|
+
fields: [{ id: x, title: X, type: select, categories: [a, a], updatedAt: 2026-11-09T10:00:00Z }]
|
|
490
|
+
tasks: []
|
|
491
|
+
issues: [[fields, 0, categories, 1]]
|
|
492
|
+
- name: option without its category
|
|
493
|
+
format: yaml
|
|
494
|
+
input: |
|
|
495
|
+
version: "1.0"
|
|
496
|
+
fields: [{ id: x, title: X, type: select, categories: [a], options: [{ id: o, title: O, updatedAt: 2026-11-09T10:00:00Z }], updatedAt: 2026-11-09T10:00:00Z }]
|
|
497
|
+
tasks: []
|
|
498
|
+
issues: [[fields, 0, options, 0, category]]
|
|
499
|
+
- name: option with an undeclared category
|
|
500
|
+
format: yaml
|
|
501
|
+
input: |
|
|
502
|
+
version: "1.0"
|
|
503
|
+
fields: [{ id: status, options: [{ id: o, title: O, category: archived, updatedAt: 2026-11-09T10:00:00Z }] }]
|
|
504
|
+
tasks: []
|
|
505
|
+
issues: [[fields, 0, options, 0, category]]
|
|
506
|
+
- name: changing a built-in field's type
|
|
507
|
+
format: yaml
|
|
508
|
+
input: |
|
|
509
|
+
version: "1.0"
|
|
510
|
+
fields: [{ id: status, type: text }]
|
|
511
|
+
tasks: []
|
|
512
|
+
issues: [[fields, 0, type]]
|
|
513
|
+
- name: recategorizing a built-in option
|
|
514
|
+
format: yaml
|
|
515
|
+
input: |
|
|
516
|
+
version: "1.0"
|
|
517
|
+
fields: [{ id: status, options: [{ id: done, category: todo, updatedAt: 2026-11-09T10:00:00Z }] }]
|
|
518
|
+
tasks: []
|
|
519
|
+
issues: [[fields, 0, options, 0, category]]
|
|
520
|
+
- name: duplicate option id
|
|
521
|
+
format: yaml
|
|
522
|
+
input: |
|
|
523
|
+
version: "1.0"
|
|
524
|
+
fields:
|
|
525
|
+
- id: tags
|
|
526
|
+
options:
|
|
527
|
+
- { id: x, title: X, updatedAt: 2026-11-09T10:00:00Z }
|
|
528
|
+
- { id: x, title: Y, updatedAt: 2026-11-09T10:00:00Z }
|
|
529
|
+
tasks: []
|
|
530
|
+
issues: [[fields, 0, options, 1, id]]
|
|
531
|
+
|
|
532
|
+
# --- Markdown task files ---
|
|
533
|
+
- name: markdown without frontmatter
|
|
534
|
+
format: markdown
|
|
535
|
+
input: "# Just a note\n"
|
|
536
|
+
issues: [[]]
|
|
537
|
+
- name: markdown with unclosed frontmatter
|
|
538
|
+
format: markdown
|
|
539
|
+
input: "---\ntask:\n id: a\n"
|
|
540
|
+
issues: [[]]
|
|
541
|
+
- name: markdown task is a string
|
|
542
|
+
format: markdown
|
|
543
|
+
input: "---\ntask: buy milk\n---\n"
|
|
544
|
+
issues: [[task]]
|
|
545
|
+
- name: markdown notes in frontmatter
|
|
546
|
+
format: markdown
|
|
547
|
+
input: "---\ntask: { id: a, title: A, notes: x, updatedAt: 2026-11-09T10:00:00Z }\n---\n"
|
|
548
|
+
issues: [[task, notes]]
|
|
549
|
+
- name: markdown task without id
|
|
550
|
+
format: markdown
|
|
551
|
+
input: "---\ntask: { title: A, updatedAt: 2026-11-09T10:00:00Z }\n---\n"
|
|
552
|
+
issues: [[task, id]]
|
|
553
|
+
- name: markdown broken toml frontmatter
|
|
554
|
+
format: markdown
|
|
555
|
+
input: "+++\n[task\n+++\n"
|
|
556
|
+
issues: [[]]
|
|
557
|
+
- name: markdown time rule
|
|
558
|
+
format: markdown
|
|
559
|
+
input: "---\ntask: { id: a, title: A, start: 2026-11-10, end: 2026-11-09, updatedAt: 2026-11-09T10:00:00Z }\n---\n"
|
|
560
|
+
issues: [[task, end]]
|
|
561
|
+
|
|
562
|
+
# --- iCalendar ---
|
|
563
|
+
- name: ics not a calendar
|
|
564
|
+
format: ics
|
|
565
|
+
input: "hello"
|
|
566
|
+
issues: [[]]
|
|
567
|
+
- name: ics unsupported rule part
|
|
568
|
+
format: ics
|
|
569
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nDTSTART:20261110T090000\nRRULE:FREQ=MONTHLY;BYSETPOS=-1;BYDAY=MO\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
570
|
+
dropped: [[a]]
|
|
571
|
+
- name: ics hourly rule
|
|
572
|
+
format: ics
|
|
573
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nDTSTART:20261110T090000\nRRULE:FREQ=HOURLY\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
574
|
+
dropped: [[a]]
|
|
575
|
+
- name: ics component without UID
|
|
576
|
+
format: ics
|
|
577
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VTODO\nSUMMARY:x\nEND:VTODO\nEND:VCALENDAR\n"
|
|
578
|
+
dropped: [["VTODO #1"]]
|
|
579
|
+
- name: ics Windows time zone name
|
|
580
|
+
format: ics
|
|
581
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nDTSTART;TZID=W. Europe Standard Time:20261110T090000\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
582
|
+
dropped: [[a]]
|
|
583
|
+
- name: ics changed occurrence
|
|
584
|
+
format: ics
|
|
585
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nRECURRENCE-ID:20261110T090000\nDTSTART:20261110T100000\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
586
|
+
dropped: [[a]]
|
|
587
|
+
- name: ics extra dates
|
|
588
|
+
format: ics
|
|
589
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nDTSTART:20261110T090000\nRDATE:20261112T090000\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
590
|
+
dropped: [[a, RDATE]]
|
|
591
|
+
- name: ics unreadable date
|
|
592
|
+
format: ics
|
|
593
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nDTSTART:2026\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
594
|
+
dropped: [[a]]
|
|
595
|
+
- name: ics end before start
|
|
596
|
+
format: ics
|
|
597
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nDTSTART:20261110T090000\nDTEND:20261110T080000\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
598
|
+
dropped: [[a, end]]
|
|
599
|
+
- name: ics negative duration
|
|
600
|
+
format: ics
|
|
601
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VEVENT\nUID:a\nDTSTART:20261110T090000\nDURATION:-PT15M\nEND:VEVENT\nEND:VCALENDAR\n"
|
|
602
|
+
dropped: [[a, duration]]
|
|
603
|
+
- name: ics parent outside the file
|
|
604
|
+
format: ics
|
|
605
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VTODO\nUID:a\nRELATED-TO:elsewhere\nEND:VTODO\nEND:VCALENDAR\n"
|
|
606
|
+
dropped: [[a, RELATED-TO]]
|
|
607
|
+
- name: ics duplicate UID
|
|
608
|
+
format: ics
|
|
609
|
+
input: "BEGIN:VCALENDAR\nBEGIN:VTODO\nUID:a\nEND:VTODO\nBEGIN:VTODO\nUID:a\nEND:VTODO\nEND:VCALENDAR\n"
|
|
610
|
+
dropped: [[a]]
|