@atlaskit/adf-schema 36.14.0 → 36.14.1

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +3 -2
  3. package/dist/cjs/next-schema/generated/markTypes.js +23 -23
  4. package/dist/cjs/next-schema/generated/nodeTypes.js +135 -202
  5. package/dist/cjs/next-schema/groups/blockGroup.js +5 -1
  6. package/dist/cjs/next-schema/groups/inlineGroup.js +1 -3
  7. package/dist/cjs/next-schema/nodes/blockCard.js +7 -3
  8. package/dist/cjs/next-schema/nodes/codeBlock.js +2 -2
  9. package/dist/cjs/next-schema/nodes/inlineExtension.js +5 -1
  10. package/dist/cjs/next-schema/nodes/layoutColumn.js +2 -1
  11. package/dist/cjs/next-schema/nodes/media.js +2 -2
  12. package/dist/cjs/next-schema/nodes/mediaInline.js +29 -12
  13. package/dist/cjs/next-schema/nodes/mediaSingle.js +2 -1
  14. package/dist/cjs/next-schema/nodes/mention.js +2 -1
  15. package/dist/cjs/next-schema/nodes/placeholder.js +1 -0
  16. package/dist/cjs/next-schema/nodes/table.js +1 -0
  17. package/dist/cjs/next-schema/nodes/tableCell.js +2 -2
  18. package/dist/cjs/next-schema/nodes/tableHeader.js +2 -2
  19. package/dist/cjs/next-schema/nodes/tableRow.js +2 -1
  20. package/dist/es2019/next-schema/full-schema.adf.js +3 -2
  21. package/dist/es2019/next-schema/generated/markTypes.js +23 -23
  22. package/dist/es2019/next-schema/generated/nodeTypes.js +134 -201
  23. package/dist/es2019/next-schema/groups/blockGroup.js +5 -1
  24. package/dist/es2019/next-schema/groups/inlineGroup.js +1 -3
  25. package/dist/es2019/next-schema/nodes/blockCard.js +7 -3
  26. package/dist/es2019/next-schema/nodes/codeBlock.js +1 -1
  27. package/dist/es2019/next-schema/nodes/inlineExtension.js +5 -1
  28. package/dist/es2019/next-schema/nodes/layoutColumn.js +2 -1
  29. package/dist/es2019/next-schema/nodes/media.js +2 -2
  30. package/dist/es2019/next-schema/nodes/mediaInline.js +29 -12
  31. package/dist/es2019/next-schema/nodes/mediaSingle.js +2 -1
  32. package/dist/es2019/next-schema/nodes/mention.js +2 -1
  33. package/dist/es2019/next-schema/nodes/placeholder.js +1 -0
  34. package/dist/es2019/next-schema/nodes/table.js +1 -0
  35. package/dist/es2019/next-schema/nodes/tableCell.js +2 -2
  36. package/dist/es2019/next-schema/nodes/tableHeader.js +2 -2
  37. package/dist/es2019/next-schema/nodes/tableRow.js +2 -1
  38. package/dist/esm/next-schema/full-schema.adf.js +3 -2
  39. package/dist/esm/next-schema/generated/markTypes.js +23 -23
  40. package/dist/esm/next-schema/generated/nodeTypes.js +134 -201
  41. package/dist/esm/next-schema/groups/blockGroup.js +5 -1
  42. package/dist/esm/next-schema/groups/inlineGroup.js +1 -3
  43. package/dist/esm/next-schema/nodes/blockCard.js +7 -3
  44. package/dist/esm/next-schema/nodes/codeBlock.js +1 -1
  45. package/dist/esm/next-schema/nodes/inlineExtension.js +5 -1
  46. package/dist/esm/next-schema/nodes/layoutColumn.js +2 -1
  47. package/dist/esm/next-schema/nodes/media.js +2 -2
  48. package/dist/esm/next-schema/nodes/mediaInline.js +29 -12
  49. package/dist/esm/next-schema/nodes/mediaSingle.js +2 -1
  50. package/dist/esm/next-schema/nodes/mention.js +2 -1
  51. package/dist/esm/next-schema/nodes/placeholder.js +1 -0
  52. package/dist/esm/next-schema/nodes/table.js +1 -0
  53. package/dist/esm/next-schema/nodes/tableCell.js +2 -2
  54. package/dist/esm/next-schema/nodes/tableHeader.js +2 -2
  55. package/dist/esm/next-schema/nodes/tableRow.js +2 -1
  56. package/dist/types/next-schema/generated/markTypes.d.ts +36 -36
  57. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -4
  58. package/dist/types/next-schema/generated/nodeTypes.d.ts +59 -120
  59. package/dist/types/next-schema/nodes/codeBlock.d.ts +1 -1
  60. package/dist/types/next-schema/nodes/inlineExtension.d.ts +2 -0
  61. package/package.json +1 -1
  62. package/schema-generators/__tests__/helpers/_utils.ts +123 -0
  63. package/schema-generators/__tests__/helpers/utils.unit.ts +66 -0
  64. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +1142 -1231
  65. package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +162 -36
@@ -12,407 +12,501 @@ const jsonWithTypes = {
12
12
  description: 'Schema for Atlassian Document Format.',
13
13
  $ref: '#/definitions/doc_node',
14
14
  definitions: {
15
- text_node: {
16
- type: 'object',
17
- properties: {
18
- type: {
19
- enum: ['text'],
20
- },
21
- text: {
22
- type: 'string',
23
- minLength: 1,
24
- },
25
- },
26
- required: ['type', 'text'],
15
+ alignment_mark: {
27
16
  additionalProperties: false,
28
- },
29
- breakout_mark: {
30
- type: 'object',
31
17
  properties: {
32
- type: {
33
- enum: ['breakout'],
34
- },
35
18
  attrs: {
36
- type: 'object',
19
+ additionalProperties: false,
37
20
  properties: {
38
- mode: {
39
- enum: ['wide', 'full-width'],
21
+ align: {
22
+ enum: ['center', 'end'],
40
23
  },
41
24
  },
42
- required: ['mode'],
43
- additionalProperties: false,
25
+ required: ['align'],
26
+ type: 'object',
27
+ },
28
+ type: {
29
+ enum: ['alignment'],
44
30
  },
45
31
  },
46
32
  required: ['type', 'attrs'],
47
- additionalProperties: false,
48
- },
49
- codeBlock_node: {
50
33
  type: 'object',
34
+ },
35
+ annotation_mark: {
36
+ additionalProperties: false,
51
37
  properties: {
52
- type: {
53
- enum: ['codeBlock'],
54
- },
55
- content: {
56
- type: 'array',
57
- items: {},
58
- },
59
38
  attrs: {
60
- type: 'object',
39
+ additionalProperties: false,
61
40
  properties: {
62
- language: {
41
+ annotationType: {
42
+ enum: ['inlineComment'],
43
+ },
44
+ id: {
63
45
  type: 'string',
64
46
  },
65
47
  },
66
- additionalProperties: false,
48
+ required: ['id', 'annotationType'],
49
+ type: 'object',
67
50
  },
68
- },
69
- required: ['type'],
70
- additionalProperties: false,
71
- },
72
- codeBlock_with_no_marks_node: {},
73
- codeBlock_with_marks_node: {},
74
- em_mark: {
75
- type: 'object',
76
- properties: {
77
51
  type: {
78
- enum: ['em'],
52
+ enum: ['annotation'],
79
53
  },
80
54
  },
81
- required: ['type'],
82
- additionalProperties: false,
83
- },
84
- code_mark: {
55
+ required: ['type', 'attrs'],
85
56
  type: 'object',
86
- properties: {
87
- type: {
88
- enum: ['code'],
89
- },
90
- },
91
- required: ['type'],
92
- additionalProperties: false,
93
57
  },
94
- strike_mark: {
95
- type: 'object',
58
+ backgroundColor_mark: {
59
+ additionalProperties: false,
96
60
  properties: {
61
+ attrs: {
62
+ additionalProperties: false,
63
+ properties: {
64
+ color: {
65
+ pattern: '^#[0-9a-fA-F]{6}$',
66
+ type: 'string',
67
+ },
68
+ },
69
+ required: ['color'],
70
+ type: 'object',
71
+ },
97
72
  type: {
98
- enum: ['strike'],
73
+ enum: ['backgroundColor'],
99
74
  },
100
75
  },
101
- required: ['type'],
102
- additionalProperties: false,
103
- },
104
- strong_mark: {
76
+ required: ['type', 'attrs'],
105
77
  type: 'object',
78
+ },
79
+ blockCard_node: {
80
+ additionalProperties: false,
106
81
  properties: {
82
+ attrs: {
83
+ anyOf: [
84
+ {
85
+ additionalProperties: false,
86
+ properties: {
87
+ datasource: {
88
+ additionalProperties: false,
89
+ properties: {
90
+ id: {
91
+ type: 'string',
92
+ },
93
+ parameters: {},
94
+ views: {
95
+ items: {
96
+ additionalProperties: false,
97
+ properties: {
98
+ properties: {},
99
+ type: {
100
+ type: 'string',
101
+ },
102
+ },
103
+ required: ['type'],
104
+ type: 'object',
105
+ },
106
+ minItems: 1,
107
+ type: 'array',
108
+ },
109
+ },
110
+ required: ['id', 'parameters', 'views'],
111
+ type: 'object',
112
+ },
113
+ layout: {
114
+ enum: [
115
+ 'wide',
116
+ 'full-width',
117
+ 'center',
118
+ 'wrap-right',
119
+ 'wrap-left',
120
+ 'align-end',
121
+ 'align-start',
122
+ ],
123
+ },
124
+ url: {
125
+ type: 'string',
126
+ },
127
+ width: {
128
+ type: 'number',
129
+ },
130
+ },
131
+ required: ['datasource'],
132
+ type: 'object',
133
+ },
134
+ {
135
+ additionalProperties: false,
136
+ properties: {
137
+ url: {
138
+ type: 'string',
139
+ },
140
+ },
141
+ required: ['url'],
142
+ type: 'object',
143
+ },
144
+ {
145
+ additionalProperties: false,
146
+ properties: {
147
+ data: {},
148
+ },
149
+ required: ['data'],
150
+ type: 'object',
151
+ },
152
+ ],
153
+ },
107
154
  type: {
108
- enum: ['strong'],
155
+ enum: ['blockCard'],
109
156
  },
110
157
  },
111
- required: ['type'],
112
- additionalProperties: false,
113
- },
114
- underline_mark: {
158
+ required: ['type', 'attrs'],
115
159
  type: 'object',
160
+ },
161
+ blockquote_node: {
162
+ additionalProperties: false,
116
163
  properties: {
164
+ content: {
165
+ items: {
166
+ anyOf: [
167
+ {
168
+ $ref: '#/definitions/paragraph_with_no_marks_node',
169
+ },
170
+ {
171
+ $ref: '#/definitions/bulletList_node',
172
+ },
173
+ {
174
+ $ref: '#/definitions/orderedList_node',
175
+ },
176
+ ],
177
+ },
178
+ minItems: 1,
179
+ type: 'array',
180
+ },
117
181
  type: {
118
- enum: ['underline'],
182
+ enum: ['blockquote'],
119
183
  },
120
184
  },
121
- required: ['type'],
122
- additionalProperties: false,
123
- },
124
- link_mark: {
185
+ required: ['type', 'content'],
125
186
  type: 'object',
187
+ },
188
+ blockquote_with_list_node: {},
189
+ bodiedExtension_with_marks_node: {},
190
+ border_mark: {
191
+ additionalProperties: false,
126
192
  properties: {
127
- type: {
128
- enum: ['link'],
129
- },
130
193
  attrs: {
131
- type: 'object',
194
+ additionalProperties: false,
132
195
  properties: {
133
- href: {
134
- type: 'string',
135
- },
136
- title: {
137
- type: 'string',
138
- },
139
- id: {
140
- type: 'string',
141
- },
142
- collection: {
196
+ color: {
197
+ pattern: '^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$',
143
198
  type: 'string',
144
199
  },
145
- occurrenceKey: {
146
- type: 'string',
200
+ size: {
201
+ maximum: 3,
202
+ minimum: 1,
203
+ type: 'number',
147
204
  },
148
205
  },
149
- required: ['href'],
150
- additionalProperties: false,
206
+ required: ['size', 'color'],
207
+ type: 'object',
208
+ },
209
+ type: {
210
+ enum: ['border'],
151
211
  },
152
212
  },
153
213
  required: ['type', 'attrs'],
154
- additionalProperties: false,
155
- },
156
- subsup_mark: {
157
214
  type: 'object',
215
+ },
216
+ breakout_mark: {
217
+ additionalProperties: false,
158
218
  properties: {
159
- type: {
160
- enum: ['subsup'],
161
- },
162
219
  attrs: {
163
- type: 'object',
220
+ additionalProperties: false,
164
221
  properties: {
165
- type: {
166
- enum: ['sub', 'sup'],
222
+ mode: {
223
+ enum: ['wide', 'full-width'],
167
224
  },
168
225
  },
169
- required: ['type'],
170
- additionalProperties: false,
226
+ required: ['mode'],
227
+ type: 'object',
171
228
  },
172
- },
173
- required: ['type', 'attrs'],
174
- additionalProperties: false,
175
- },
176
- textColor_mark: {
177
- type: 'object',
178
- properties: {
179
229
  type: {
180
- enum: ['textColor'],
181
- },
182
- attrs: {
183
- type: 'object',
184
- properties: {
185
- color: {
186
- type: 'string',
187
- pattern: '^#[0-9a-fA-F]{6}$',
188
- },
189
- },
190
- required: ['color'],
191
- additionalProperties: false,
230
+ enum: ['breakout'],
192
231
  },
193
232
  },
194
233
  required: ['type', 'attrs'],
195
- additionalProperties: false,
196
- },
197
- alignment_mark: {
198
234
  type: 'object',
235
+ },
236
+ bulletList_node: {
237
+ additionalProperties: false,
199
238
  properties: {
200
- type: {
201
- enum: ['alignment'],
202
- },
203
- attrs: {
204
- type: 'object',
205
- properties: {
206
- align: {
207
- enum: ['center', 'end'],
208
- },
239
+ content: {
240
+ items: {
241
+ $ref: '#/definitions/listItem_node',
209
242
  },
210
- required: ['align'],
211
- additionalProperties: false,
243
+ minItems: 1,
244
+ type: 'array',
245
+ },
246
+ type: {
247
+ enum: ['bulletList'],
212
248
  },
213
249
  },
214
- required: ['type', 'attrs'],
215
- additionalProperties: false,
216
- },
217
- indentation_mark: {
250
+ required: ['type', 'content'],
218
251
  type: 'object',
252
+ },
253
+ caption_node: {
254
+ additionalProperties: false,
219
255
  properties: {
220
- type: {
221
- enum: ['indentation'],
222
- },
223
- attrs: {
224
- type: 'object',
225
- properties: {
226
- level: {
227
- type: 'number',
228
- minimum: 1,
229
- maximum: 6,
230
- },
256
+ content: {
257
+ items: {
258
+ anyOf: [
259
+ {
260
+ $ref: '#/definitions/hardBreak_node',
261
+ },
262
+ {
263
+ $ref: '#/definitions/mention_node',
264
+ },
265
+ {
266
+ $ref: '#/definitions/emoji_node',
267
+ },
268
+ {
269
+ $ref: '#/definitions/date_node',
270
+ },
271
+ {
272
+ $ref: '#/definitions/placeholder_node',
273
+ },
274
+ {
275
+ $ref: '#/definitions/inlineCard_node',
276
+ },
277
+ {
278
+ $ref: '#/definitions/status_node',
279
+ },
280
+ {
281
+ $ref: '#/definitions/formatted_text_inline_node',
282
+ },
283
+ {
284
+ $ref: '#/definitions/code_inline_node',
285
+ },
286
+ ],
231
287
  },
232
- required: ['level'],
233
- additionalProperties: false,
288
+ minItems: 0,
289
+ type: 'array',
290
+ },
291
+ type: {
292
+ enum: ['caption'],
234
293
  },
235
294
  },
236
- required: ['type', 'attrs'],
237
- additionalProperties: false,
238
- },
239
- annotation_mark: {
295
+ required: ['type', 'content'],
240
296
  type: 'object',
297
+ },
298
+ codeBlock_with_marks_node: {},
299
+ codeBlock_with_no_marks_node: {},
300
+ code_inline_node: {},
301
+ code_mark: {
302
+ additionalProperties: false,
241
303
  properties: {
242
304
  type: {
243
- enum: ['annotation'],
244
- },
245
- attrs: {
246
- type: 'object',
247
- properties: {
248
- id: {
249
- type: 'string',
250
- },
251
- annotationType: {
252
- enum: ['inlineComment'],
253
- },
254
- },
255
- required: ['id', 'annotationType'],
256
- additionalProperties: false,
305
+ enum: ['code'],
257
306
  },
258
307
  },
259
- required: ['type', 'attrs'],
260
- additionalProperties: false,
308
+ required: ['type'],
309
+ type: 'object',
261
310
  },
262
311
  dataConsumer_mark: {
263
- type: 'object',
312
+ additionalProperties: false,
264
313
  properties: {
265
- type: {
266
- enum: ['dataConsumer'],
267
- },
268
314
  attrs: {
269
- type: 'object',
315
+ additionalProperties: false,
270
316
  properties: {
271
317
  sources: {
272
- type: 'array',
273
318
  items: {
274
319
  type: 'string',
275
320
  },
276
321
  minItems: 1,
322
+ type: 'array',
277
323
  },
278
324
  },
279
325
  required: ['sources'],
280
- additionalProperties: false,
326
+ type: 'object',
327
+ },
328
+ type: {
329
+ enum: ['dataConsumer'],
281
330
  },
282
331
  },
283
332
  required: ['type', 'attrs'],
284
- additionalProperties: false,
285
- },
286
- fragment_mark: {
287
333
  type: 'object',
334
+ },
335
+ date_node: {
336
+ additionalProperties: false,
288
337
  properties: {
289
- type: {
290
- enum: ['fragment'],
291
- },
292
338
  attrs: {
293
- type: 'object',
339
+ additionalProperties: false,
294
340
  properties: {
295
- localId: {
296
- type: 'string',
341
+ timestamp: {
297
342
  minLength: 1,
298
- },
299
- name: {
300
343
  type: 'string',
301
344
  },
302
345
  },
303
- required: ['localId'],
304
- additionalProperties: false,
346
+ required: ['timestamp'],
347
+ type: 'object',
348
+ },
349
+ type: {
350
+ enum: ['date'],
305
351
  },
306
352
  },
307
353
  required: ['type', 'attrs'],
308
- additionalProperties: false,
309
- },
310
- border_mark: {
311
354
  type: 'object',
355
+ },
356
+ decisionItem_node: {
357
+ additionalProperties: false,
312
358
  properties: {
313
- type: {
314
- enum: ['border'],
315
- },
316
359
  attrs: {
317
- type: 'object',
360
+ additionalProperties: false,
318
361
  properties: {
319
- size: {
320
- type: 'number',
321
- minimum: 1,
322
- maximum: 3,
362
+ localId: {
363
+ type: 'string',
323
364
  },
324
- color: {
365
+ state: {
325
366
  type: 'string',
326
- pattern: '^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$',
327
367
  },
328
368
  },
329
- required: ['size', 'color'],
330
- additionalProperties: false,
369
+ required: ['localId', 'state'],
370
+ type: 'object',
371
+ },
372
+ content: {
373
+ items: {
374
+ $ref: '#/definitions/inline_node',
375
+ },
376
+ type: 'array',
377
+ },
378
+ type: {
379
+ enum: ['decisionItem'],
331
380
  },
332
381
  },
333
382
  required: ['type', 'attrs'],
334
- additionalProperties: false,
335
- },
336
- backgroundColor_mark: {
337
383
  type: 'object',
384
+ },
385
+ decisionList_node: {
386
+ additionalProperties: false,
338
387
  properties: {
339
- type: {
340
- enum: ['backgroundColor'],
341
- },
342
388
  attrs: {
343
- type: 'object',
389
+ additionalProperties: false,
344
390
  properties: {
345
- color: {
391
+ localId: {
346
392
  type: 'string',
347
- pattern: '^#[0-9a-fA-F]{6}$',
348
393
  },
349
394
  },
350
- required: ['color'],
351
- additionalProperties: false,
352
- },
353
- },
354
- required: ['type', 'attrs'],
355
- additionalProperties: false,
356
- },
357
- hardBreak_node: {
358
- type: 'object',
359
- properties: {
360
- type: {
361
- enum: ['hardBreak'],
362
- },
363
- attrs: {
395
+ required: ['localId'],
364
396
  type: 'object',
365
- properties: {
366
- text: {
367
- enum: ['\n'],
368
- },
397
+ },
398
+ content: {
399
+ items: {
400
+ $ref: '#/definitions/decisionItem_node',
369
401
  },
370
- additionalProperties: false,
402
+ minItems: 1,
403
+ type: 'array',
404
+ },
405
+ type: {
406
+ enum: ['decisionList'],
371
407
  },
372
408
  },
373
- required: ['type'],
374
- additionalProperties: false,
375
- },
376
- mention_node: {
409
+ required: ['type', 'attrs', 'content'],
377
410
  type: 'object',
411
+ },
412
+ doc_node: {
413
+ additionalProperties: false,
378
414
  properties: {
379
- type: {
380
- enum: ['mention'],
415
+ content: {
416
+ items: {
417
+ anyOf: [
418
+ {
419
+ $ref: '#/definitions/block_content',
420
+ },
421
+ {
422
+ $ref: '#/definitions/layoutSection_node',
423
+ },
424
+ {
425
+ $ref: '#/definitions/layoutSection_full_node',
426
+ },
427
+ {
428
+ $ref: '#/definitions/expand_with_breakout_mark_node',
429
+ },
430
+ {
431
+ $ref: '#/definitions/codeBlock_with_no_marks_node',
432
+ },
433
+ {
434
+ $ref: '#/definitions/codeBlock_with_marks_node',
435
+ },
436
+ {
437
+ $ref: '#/definitions/paragraph_with_indentation_node',
438
+ },
439
+ ],
440
+ },
441
+ type: 'array',
442
+ },
443
+ type: {
444
+ enum: ['doc'],
445
+ },
446
+ version: {
447
+ enum: [1],
381
448
  },
449
+ },
450
+ required: ['version', 'type', 'content'],
451
+ type: 'object',
452
+ },
453
+ em_mark: {
454
+ additionalProperties: false,
455
+ properties: {
456
+ type: {
457
+ enum: ['em'],
458
+ },
459
+ },
460
+ required: ['type'],
461
+ type: 'object',
462
+ },
463
+ embedCard_node: {
464
+ additionalProperties: false,
465
+ properties: {
382
466
  attrs: {
383
- type: 'object',
467
+ additionalProperties: false,
384
468
  properties: {
385
- id: {
386
- type: 'string',
469
+ layout: {
470
+ enum: [
471
+ 'wide',
472
+ 'full-width',
473
+ 'center',
474
+ 'wrap-right',
475
+ 'wrap-left',
476
+ 'align-end',
477
+ 'align-start',
478
+ ],
387
479
  },
388
- text: {
389
- type: 'string',
480
+ originalHeight: {
481
+ type: 'number',
390
482
  },
391
- userType: {
392
- enum: ['DEFAULT', 'SPECIAL', 'APP'],
483
+ originalWidth: {
484
+ type: 'number',
393
485
  },
394
- accessLevel: {
486
+ url: {
395
487
  type: 'string',
396
488
  },
397
- localId: {
398
- type: 'string',
489
+ width: {
490
+ maximum: 100,
491
+ minimum: 0,
492
+ type: 'number',
399
493
  },
400
494
  },
401
- required: ['id'],
402
- additionalProperties: false,
495
+ required: ['url', 'layout'],
496
+ type: 'object',
497
+ },
498
+ type: {
499
+ enum: ['embedCard'],
403
500
  },
404
501
  },
405
502
  required: ['type', 'attrs'],
406
- additionalProperties: false,
503
+ type: 'object',
407
504
  },
408
505
  emoji_node: {
409
- type: 'object',
506
+ additionalProperties: false,
410
507
  properties: {
411
- type: {
412
- enum: ['emoji'],
413
- },
414
508
  attrs: {
415
- type: 'object',
509
+ additionalProperties: false,
416
510
  properties: {
417
511
  id: {
418
512
  type: 'string',
@@ -424,353 +518,345 @@ const jsonWithTypes = {
424
518
  type: 'string',
425
519
  },
426
520
  },
427
- additionalProperties: false,
428
521
  required: ['shortName'],
522
+ type: 'object',
523
+ },
524
+ type: {
525
+ enum: ['emoji'],
429
526
  },
430
527
  },
431
528
  required: ['type', 'attrs'],
432
- additionalProperties: false,
433
- },
434
- inlineExtension_node: {
435
529
  type: 'object',
530
+ },
531
+ expand_with_breakout_mark_node: {},
532
+ expand_with_no_mark_node: {},
533
+ extension_with_marks_node: {},
534
+ formatted_text_inline_node: {},
535
+ fragment_mark: {
536
+ additionalProperties: false,
436
537
  properties: {
437
- type: {
438
- enum: ['inlineExtension'],
439
- },
440
538
  attrs: {
441
- type: 'object',
539
+ additionalProperties: false,
442
540
  properties: {
443
- extensionKey: {
444
- type: 'string',
445
- minLength: 1,
446
- },
447
- extensionType: {
448
- type: 'string',
541
+ localId: {
449
542
  minLength: 1,
450
- },
451
- parameters: {},
452
- text: {
453
543
  type: 'string',
454
544
  },
455
- localId: {
545
+ name: {
456
546
  type: 'string',
457
- minLength: 1,
458
547
  },
459
548
  },
460
- required: ['extensionKey', 'extensionType'],
461
- additionalProperties: false,
549
+ required: ['localId'],
550
+ type: 'object',
551
+ },
552
+ type: {
553
+ enum: ['fragment'],
462
554
  },
463
555
  },
464
556
  required: ['type', 'attrs'],
465
- additionalProperties: false,
466
- },
467
- inlineExtension_with_marks_node: {},
468
- date_node: {
469
557
  type: 'object',
558
+ },
559
+ hardBreak_node: {
560
+ additionalProperties: false,
470
561
  properties: {
562
+ attrs: {
563
+ additionalProperties: false,
564
+ properties: {
565
+ text: {
566
+ enum: ['\n'],
567
+ },
568
+ },
569
+ type: 'object',
570
+ },
471
571
  type: {
472
- enum: ['date'],
572
+ enum: ['hardBreak'],
473
573
  },
574
+ },
575
+ required: ['type'],
576
+ type: 'object',
577
+ },
578
+ heading_node: {
579
+ additionalProperties: false,
580
+ properties: {
474
581
  attrs: {
475
- type: 'object',
582
+ additionalProperties: false,
476
583
  properties: {
477
- timestamp: {
478
- type: 'string',
479
- minLength: 1,
584
+ level: {
585
+ maximum: 6,
586
+ minimum: 1,
587
+ type: 'number',
480
588
  },
481
589
  },
482
- required: ['timestamp'],
483
- additionalProperties: false,
590
+ required: ['level'],
591
+ type: 'object',
592
+ },
593
+ content: {
594
+ items: {
595
+ $ref: '#/definitions/inline_node',
596
+ },
597
+ type: 'array',
598
+ },
599
+ type: {
600
+ enum: ['heading'],
484
601
  },
485
602
  },
486
603
  required: ['type', 'attrs'],
487
- additionalProperties: false,
488
- },
489
- placeholder_node: {
490
604
  type: 'object',
605
+ },
606
+ heading_with_alignment_node: {},
607
+ heading_with_indentation_node: {},
608
+ heading_with_no_marks_node: {},
609
+ indentation_mark: {
610
+ additionalProperties: false,
491
611
  properties: {
492
- type: {
493
- enum: ['placeholder'],
494
- },
495
612
  attrs: {
496
- type: 'object',
613
+ additionalProperties: false,
497
614
  properties: {
498
- text: {
499
- type: 'string',
615
+ level: {
616
+ maximum: 6,
617
+ minimum: 1,
618
+ type: 'number',
500
619
  },
501
620
  },
502
- required: ['text'],
503
- additionalProperties: false,
621
+ required: ['level'],
622
+ type: 'object',
623
+ },
624
+ type: {
625
+ enum: ['indentation'],
504
626
  },
505
627
  },
506
628
  required: ['type', 'attrs'],
507
- additionalProperties: false,
508
- },
509
- blockCard_node: {
510
629
  type: 'object',
630
+ },
631
+ inlineCard_node: {
632
+ additionalProperties: false,
511
633
  properties: {
512
- type: {
513
- enum: ['blockCard'],
514
- },
515
634
  attrs: {
516
635
  anyOf: [
517
636
  {
518
- type: 'object',
519
- properties: {
520
- url: {
521
- type: 'string',
522
- },
523
- datasource: {
524
- type: 'object',
525
- properties: {
526
- id: {
527
- type: 'string',
528
- },
529
- parameters: {},
530
- views: {
531
- type: 'array',
532
- items: {
533
- type: 'object',
534
- properties: {
535
- type: {
536
- type: 'string',
537
- },
538
- properties: {},
539
- },
540
- required: ['type'],
541
- additionalProperties: false,
542
- },
543
- minItems: 1,
544
- },
545
- },
546
- required: ['id', 'parameters', 'views'],
547
- additionalProperties: false,
548
- },
549
- width: {
550
- type: 'number',
551
- },
552
- layout: {
553
- enum: [
554
- 'wide',
555
- 'full-width',
556
- 'center',
557
- 'wrap-right',
558
- 'wrap-left',
559
- 'align-end',
560
- 'align-start',
561
- ],
562
- },
563
- },
564
- additionalProperties: false,
565
- required: ['datasource'],
566
- },
567
- {
568
- type: 'object',
637
+ additionalProperties: false,
569
638
  properties: {
570
639
  url: {
571
640
  type: 'string',
572
641
  },
573
642
  },
574
643
  required: ['url'],
575
- additionalProperties: false,
644
+ type: 'object',
576
645
  },
577
646
  {
578
- type: 'object',
647
+ additionalProperties: false,
579
648
  properties: {
580
649
  data: {},
581
650
  },
582
651
  required: ['data'],
583
- additionalProperties: false,
652
+ type: 'object',
584
653
  },
585
654
  ],
586
655
  },
656
+ type: {
657
+ enum: ['inlineCard'],
658
+ },
587
659
  },
588
660
  required: ['type', 'attrs'],
589
- additionalProperties: false,
590
- },
591
- inlineCard_node: {
592
661
  type: 'object',
662
+ },
663
+ inlineExtension_with_marks_node: {},
664
+ layoutColumn_node: {
665
+ additionalProperties: false,
593
666
  properties: {
594
- type: {
595
- enum: ['inlineCard'],
596
- },
597
667
  attrs: {
598
- anyOf: [
599
- {
600
- type: 'object',
601
- properties: {
602
- url: {
603
- type: 'string',
604
- },
605
- },
606
- required: ['url'],
607
- additionalProperties: false,
608
- },
609
- {
610
- type: 'object',
611
- properties: {
612
- data: {},
613
- },
614
- required: ['data'],
615
- additionalProperties: false,
668
+ additionalProperties: false,
669
+ properties: {
670
+ width: {
671
+ maximum: 100,
672
+ minimum: 0,
673
+ type: 'number',
616
674
  },
617
- ],
675
+ },
676
+ required: ['width'],
677
+ type: 'object',
678
+ },
679
+ content: {
680
+ items: {
681
+ $ref: '#/definitions/block_content',
682
+ },
683
+ minItems: 1,
684
+ type: 'array',
685
+ },
686
+ type: {
687
+ enum: ['layoutColumn'],
618
688
  },
619
689
  },
620
- required: ['type', 'attrs'],
621
- additionalProperties: false,
622
- },
623
- status_node: {
690
+ required: ['type', 'attrs', 'content'],
624
691
  type: 'object',
692
+ },
693
+ layoutSection_full_node: {},
694
+ layoutSection_node: {
695
+ additionalProperties: false,
625
696
  properties: {
697
+ content: {
698
+ items: {
699
+ $ref: '#/definitions/layoutColumn_node',
700
+ },
701
+ type: 'array',
702
+ },
703
+ marks: {
704
+ items: {
705
+ $ref: '#/definitions/breakout_mark',
706
+ },
707
+ type: 'array',
708
+ },
626
709
  type: {
627
- enum: ['status'],
710
+ enum: ['layoutSection'],
628
711
  },
712
+ },
713
+ required: ['type', 'content'],
714
+ type: 'object',
715
+ },
716
+ link_mark: {
717
+ additionalProperties: false,
718
+ properties: {
629
719
  attrs: {
630
- type: 'object',
720
+ additionalProperties: false,
631
721
  properties: {
632
- text: {
722
+ collection: {
633
723
  type: 'string',
634
- minLength: 1,
635
724
  },
636
- color: {
637
- enum: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green'],
725
+ href: {
726
+ type: 'string',
638
727
  },
639
- localId: {
728
+ id: {
640
729
  type: 'string',
641
730
  },
642
- style: {
731
+ occurrenceKey: {
732
+ type: 'string',
733
+ },
734
+ title: {
643
735
  type: 'string',
644
736
  },
645
737
  },
646
- required: ['text', 'color'],
647
- additionalProperties: false,
738
+ required: ['href'],
739
+ type: 'object',
740
+ },
741
+ type: {
742
+ enum: ['link'],
648
743
  },
649
744
  },
650
745
  required: ['type', 'attrs'],
651
- additionalProperties: false,
652
- },
653
- media_node: {
654
746
  type: 'object',
747
+ },
748
+ listItem_node: {
749
+ additionalProperties: false,
655
750
  properties: {
656
- type: {
657
- enum: ['media'],
658
- },
659
- attrs: {
660
- anyOf: [
751
+ content: {
752
+ items: [
661
753
  {
662
- type: 'object',
663
- properties: {
664
- type: {
665
- enum: ['link', 'file'],
666
- },
667
- id: {
668
- type: 'string',
669
- minLength: 1,
670
- },
671
- collection: {
672
- type: 'string',
673
- },
674
- height: {
675
- type: 'number',
754
+ anyOf: [
755
+ {
756
+ $ref: '#/definitions/codeBlock_with_no_marks_node',
676
757
  },
677
- width: {
678
- type: 'number',
758
+ {
759
+ $ref: '#/definitions/paragraph_with_no_marks_node',
679
760
  },
680
- occurrenceKey: {
681
- type: 'string',
682
- minLength: 1,
761
+ {
762
+ $ref: '#/definitions/mediaSingle_caption_node',
683
763
  },
684
- alt: {
685
- type: 'string',
764
+ {
765
+ $ref: '#/definitions/mediaSingle_full_node',
686
766
  },
687
- },
688
- required: ['type', 'id', 'collection'],
689
- additionalProperties: false,
767
+ ],
690
768
  },
691
769
  {
692
- type: 'object',
693
- properties: {
694
- type: {
695
- enum: ['external'],
770
+ anyOf: [
771
+ {
772
+ $ref: '#/definitions/codeBlock_with_no_marks_node',
696
773
  },
697
- url: {
698
- type: 'string',
774
+ {
775
+ $ref: '#/definitions/paragraph_with_no_marks_node',
699
776
  },
700
- alt: {
701
- type: 'string',
777
+ {
778
+ $ref: '#/definitions/mediaSingle_caption_node',
702
779
  },
703
- width: {
704
- type: 'number',
780
+ {
781
+ $ref: '#/definitions/mediaSingle_full_node',
705
782
  },
706
- height: {
707
- type: 'number',
783
+ {
784
+ $ref: '#/definitions/taskList_node',
708
785
  },
709
- },
710
- required: ['type', 'url'],
711
- additionalProperties: false,
786
+ {
787
+ $ref: '#/definitions/bulletList_node',
788
+ },
789
+ {
790
+ $ref: '#/definitions/orderedList_node',
791
+ },
792
+ ],
712
793
  },
713
794
  ],
714
- },
715
- marks: {
795
+ minItems: 1,
716
796
  type: 'array',
797
+ },
798
+ type: {
799
+ enum: ['listItem'],
800
+ },
801
+ },
802
+ required: ['type', 'content'],
803
+ type: 'object',
804
+ },
805
+ mediaGroup_node: {
806
+ additionalProperties: false,
807
+ properties: {
808
+ content: {
717
809
  items: {
718
- anyOf: [
719
- {
720
- $ref: '#/definitions/link_mark',
721
- },
722
- {
723
- $ref: '#/definitions/annotation_mark',
724
- },
725
- {
726
- $ref: '#/definitions/border_mark',
727
- },
728
- ],
810
+ $ref: '#/definitions/media_node',
729
811
  },
812
+ minItems: 1,
813
+ type: 'array',
814
+ },
815
+ type: {
816
+ enum: ['mediaGroup'],
730
817
  },
731
818
  },
732
- required: ['type', 'attrs'],
733
- additionalProperties: false,
819
+ required: ['type', 'content'],
820
+ type: 'object',
734
821
  },
735
822
  mediaInline_node: {
736
- type: 'object',
823
+ additionalProperties: false,
737
824
  properties: {
738
- type: {
739
- enum: ['mediaInline'],
740
- },
741
825
  attrs: {
742
- type: 'object',
826
+ additionalProperties: false,
743
827
  properties: {
744
- data: {},
745
- type: {
746
- enum: ['link', 'file', 'image'],
747
- },
748
- id: {
828
+ alt: {
749
829
  type: 'string',
750
- minLength: 1,
751
830
  },
752
831
  collection: {
753
832
  type: 'string',
754
833
  },
834
+ data: {},
755
835
  height: {
756
836
  type: 'number',
757
837
  },
758
- width: {
759
- type: 'number',
838
+ id: {
839
+ minLength: 1,
840
+ type: 'string',
760
841
  },
761
842
  occurrenceKey: {
762
- type: 'string',
763
843
  minLength: 1,
844
+ type: 'string',
764
845
  },
765
- alt: {
846
+ type: {
847
+ enum: ['link', 'file', 'image'],
848
+ },
849
+ url: {
766
850
  type: 'string',
767
851
  },
852
+ width: {
853
+ type: 'number',
854
+ },
768
855
  },
769
- additionalProperties: false,
770
- required: ['id', 'collection'],
856
+ required: ['url', 'id', 'collection'],
857
+ type: 'object',
771
858
  },
772
859
  marks: {
773
- type: 'array',
774
860
  items: {
775
861
  anyOf: [
776
862
  {
@@ -784,96 +870,25 @@ const jsonWithTypes = {
784
870
  },
785
871
  ],
786
872
  },
787
- },
788
- },
789
- required: ['type', 'attrs'],
790
- additionalProperties: false,
791
- },
792
- formatted_text_inline_node: {},
793
- code_inline_node: {},
794
- paragraph_node: {
795
- type: 'object',
796
- properties: {
797
- type: {
798
- enum: ['paragraph'],
799
- },
800
- content: {
801
873
  type: 'array',
802
- items: {
803
- $ref: '#/definitions/inline_node',
804
- },
805
874
  },
806
- },
807
- required: ['type'],
808
- additionalProperties: false,
809
- },
810
- paragraph_with_no_marks_node: {},
811
- paragraph_with_alignment_node: {},
812
- paragraph_with_indentation_node: {},
813
- caption_node: {
814
- type: 'object',
815
- properties: {
816
875
  type: {
817
- enum: ['caption'],
818
- },
819
- content: {
820
- type: 'array',
821
- items: {
822
- anyOf: [
823
- {
824
- $ref: '#/definitions/hardBreak_node',
825
- },
826
- {
827
- $ref: '#/definitions/mention_node',
828
- },
829
- {
830
- $ref: '#/definitions/emoji_node',
831
- },
832
- {
833
- $ref: '#/definitions/date_node',
834
- },
835
- {
836
- $ref: '#/definitions/placeholder_node',
837
- },
838
- {
839
- $ref: '#/definitions/inlineCard_node',
840
- },
841
- {
842
- $ref: '#/definitions/status_node',
843
- },
844
- {
845
- $ref: '#/definitions/formatted_text_inline_node',
846
- },
847
- {
848
- $ref: '#/definitions/code_inline_node',
849
- },
850
- ],
851
- },
852
- minItems: 0,
876
+ enum: ['mediaInline'],
853
877
  },
854
878
  },
855
- required: ['type', 'content'],
856
- additionalProperties: false,
879
+ required: ['type', 'attrs'],
880
+ type: 'object',
857
881
  },
882
+ mediaSingle_caption_node: {},
883
+ mediaSingle_full_node: {},
858
884
  mediaSingle_node: {
859
- type: 'object',
885
+ additionalProperties: true,
860
886
  properties: {
861
- type: {
862
- enum: ['mediaSingle'],
863
- },
864
887
  attrs: {
865
888
  anyOf: [
866
889
  {
867
- type: 'object',
890
+ additionalProperties: false,
868
891
  properties: {
869
- widthType: {
870
- enum: ['percentage'],
871
- },
872
- width: {
873
- type: 'number',
874
- minimum: 0,
875
- maximum: 100,
876
- },
877
892
  layout: {
878
893
  enum: [
879
894
  'wide',
@@ -885,20 +900,21 @@ const jsonWithTypes = {
885
900
  'align-start',
886
901
  ],
887
902
  },
888
- },
889
- additionalProperties: false,
890
- required: ['layout'],
891
- },
892
- {
893
- type: 'object',
894
- properties: {
895
903
  width: {
896
- type: 'number',
904
+ maximum: 100,
897
905
  minimum: 0,
906
+ type: 'number',
898
907
  },
899
908
  widthType: {
900
- enum: ['pixel'],
909
+ enum: ['percentage'],
901
910
  },
911
+ },
912
+ required: ['layout'],
913
+ type: 'object',
914
+ },
915
+ {
916
+ additionalProperties: false,
917
+ properties: {
902
918
  layout: {
903
919
  enum: [
904
920
  'wide',
@@ -910,345 +926,409 @@ const jsonWithTypes = {
910
926
  'align-start',
911
927
  ],
912
928
  },
929
+ width: {
930
+ minimum: 0,
931
+ type: 'number',
932
+ },
933
+ widthType: {
934
+ enum: ['pixel'],
935
+ },
913
936
  },
914
937
  required: ['width', 'widthType', 'layout'],
915
- additionalProperties: false,
938
+ type: 'object',
916
939
  },
917
940
  ],
918
941
  },
919
- marks: {
942
+ content: {
943
+ items: {
944
+ $ref: '#/definitions/media_node',
945
+ },
946
+ minItems: 1,
920
947
  type: 'array',
948
+ },
949
+ marks: {
921
950
  items: {
922
951
  $ref: '#/definitions/link_mark',
923
952
  },
953
+ type: 'array',
954
+ },
955
+ type: {
956
+ enum: ['mediaSingle'],
924
957
  },
925
958
  },
926
- required: ['type'],
927
- additionalProperties: true,
928
- },
929
- mediaSingle_caption_node: {},
930
- mediaSingle_full_node: {},
931
- taskItem_node: {
959
+ required: ['type', 'content'],
932
960
  type: 'object',
961
+ },
962
+ media_node: {
963
+ additionalProperties: false,
933
964
  properties: {
934
- type: {
935
- enum: ['taskItem'],
965
+ attrs: {
966
+ anyOf: [
967
+ {
968
+ additionalProperties: false,
969
+ properties: {
970
+ alt: {
971
+ type: 'string',
972
+ },
973
+ collection: {
974
+ type: 'string',
975
+ },
976
+ height: {
977
+ type: 'number',
978
+ },
979
+ id: {
980
+ minLength: 1,
981
+ type: 'string',
982
+ },
983
+ occurrenceKey: {
984
+ minLength: 1,
985
+ type: 'string',
986
+ },
987
+ type: {
988
+ enum: ['link', 'file'],
989
+ },
990
+ width: {
991
+ type: 'number',
992
+ },
993
+ },
994
+ required: ['type', 'id', 'collection'],
995
+ type: 'object',
996
+ },
997
+ {
998
+ additionalProperties: false,
999
+ properties: {
1000
+ alt: {
1001
+ type: 'string',
1002
+ },
1003
+ height: {
1004
+ type: 'number',
1005
+ },
1006
+ type: {
1007
+ enum: ['external'],
1008
+ },
1009
+ url: {
1010
+ type: 'string',
1011
+ },
1012
+ width: {
1013
+ type: 'number',
1014
+ },
1015
+ },
1016
+ required: ['type', 'url'],
1017
+ type: 'object',
1018
+ },
1019
+ ],
936
1020
  },
937
- content: {
938
- type: 'array',
1021
+ marks: {
939
1022
  items: {
940
- $ref: '#/definitions/inline_node',
1023
+ anyOf: [
1024
+ {
1025
+ $ref: '#/definitions/link_mark',
1026
+ },
1027
+ {
1028
+ $ref: '#/definitions/annotation_mark',
1029
+ },
1030
+ {
1031
+ $ref: '#/definitions/border_mark',
1032
+ },
1033
+ ],
941
1034
  },
1035
+ type: 'array',
1036
+ },
1037
+ type: {
1038
+ enum: ['media'],
942
1039
  },
1040
+ },
1041
+ required: ['type', 'attrs'],
1042
+ type: 'object',
1043
+ },
1044
+ mention_node: {
1045
+ additionalProperties: false,
1046
+ properties: {
943
1047
  attrs: {
944
- type: 'object',
1048
+ additionalProperties: false,
945
1049
  properties: {
1050
+ accessLevel: {
1051
+ type: 'string',
1052
+ },
1053
+ id: {
1054
+ type: 'string',
1055
+ },
946
1056
  localId: {
947
1057
  type: 'string',
948
1058
  },
949
- state: {
950
- enum: ['TODO', 'DONE'],
1059
+ text: {
1060
+ type: 'string',
1061
+ },
1062
+ userType: {
1063
+ enum: ['DEFAULT', 'SPECIAL', 'APP'],
951
1064
  },
952
1065
  },
953
- required: ['localId', 'state'],
954
- additionalProperties: false,
1066
+ required: ['id'],
1067
+ type: 'object',
1068
+ },
1069
+ type: {
1070
+ enum: ['mention'],
955
1071
  },
956
1072
  },
957
1073
  required: ['type', 'attrs'],
958
- additionalProperties: false,
959
- },
960
- taskList_node: {
961
1074
  type: 'object',
962
- properties: {
963
- type: {
964
- enum: ['taskList'],
965
- },
966
- content: {
967
- type: 'array',
968
- items: [
969
- {
970
- $ref: '#/definitions/taskItem_node',
971
- },
972
- {
973
- anyOf: [
974
- {
975
- $ref: '#/definitions/taskItem_node',
976
- },
977
- {
978
- $ref: '#/definitions/taskList_node',
979
- },
980
- ],
981
- },
982
- ],
983
- minItems: 1,
984
- },
1075
+ },
1076
+ nestedExpand_with_no_marks_node: {},
1077
+ orderedList_node: {
1078
+ additionalProperties: false,
1079
+ properties: {
985
1080
  attrs: {
986
- type: 'object',
1081
+ additionalProperties: false,
987
1082
  properties: {
988
- localId: {
989
- type: 'string',
1083
+ order: {
1084
+ minimum: 0,
1085
+ type: 'number',
990
1086
  },
991
1087
  },
992
- required: ['localId'],
993
- additionalProperties: false,
994
- },
995
- },
996
- required: ['type', 'content', 'attrs'],
997
- additionalProperties: false,
998
- },
999
- listItem_node: {
1000
- type: 'object',
1001
- properties: {
1002
- type: {
1003
- enum: ['listItem'],
1004
- },
1005
- content: {
1006
- type: 'array',
1007
- items: [
1008
- {
1009
- anyOf: [
1010
- {
1011
- $ref: '#/definitions/codeBlock_with_no_marks_node',
1012
- },
1013
- {
1014
- $ref: '#/definitions/paragraph_with_no_marks_node',
1015
- },
1016
- {
1017
- $ref: '#/definitions/mediaSingle_caption_node',
1018
- },
1019
- {
1020
- $ref: '#/definitions/mediaSingle_full_node',
1021
- },
1022
- ],
1023
- },
1024
- {
1025
- anyOf: [
1026
- {
1027
- $ref: '#/definitions/codeBlock_with_no_marks_node',
1028
- },
1029
- {
1030
- $ref: '#/definitions/paragraph_with_no_marks_node',
1031
- },
1032
- {
1033
- $ref: '#/definitions/mediaSingle_caption_node',
1034
- },
1035
- {
1036
- $ref: '#/definitions/mediaSingle_full_node',
1037
- },
1038
- {
1039
- $ref: '#/definitions/taskList_node',
1040
- },
1041
- {
1042
- $ref: '#/definitions/bulletList_node',
1043
- },
1044
- {
1045
- $ref: '#/definitions/orderedList_node',
1046
- },
1047
- ],
1048
- },
1049
- ],
1050
- minItems: 1,
1051
- },
1052
- },
1053
- required: ['type', 'content'],
1054
- additionalProperties: false,
1055
- },
1056
- bulletList_node: {
1057
- type: 'object',
1058
- properties: {
1059
- type: {
1060
- enum: ['bulletList'],
1088
+ type: 'object',
1061
1089
  },
1062
1090
  content: {
1063
- type: 'array',
1064
1091
  items: {
1065
1092
  $ref: '#/definitions/listItem_node',
1066
1093
  },
1067
1094
  minItems: 1,
1095
+ type: 'array',
1096
+ },
1097
+ type: {
1098
+ enum: ['orderedList'],
1068
1099
  },
1069
1100
  },
1070
1101
  required: ['type', 'content'],
1071
- additionalProperties: false,
1072
- },
1073
- orderedList_node: {
1074
1102
  type: 'object',
1103
+ },
1104
+ panel_node: {
1105
+ additionalProperties: false,
1075
1106
  properties: {
1076
- type: {
1077
- enum: ['orderedList'],
1107
+ attrs: {
1108
+ additionalProperties: false,
1109
+ properties: {
1110
+ panelColor: {
1111
+ type: 'string',
1112
+ },
1113
+ panelIcon: {
1114
+ type: 'string',
1115
+ },
1116
+ panelIconId: {
1117
+ type: 'string',
1118
+ },
1119
+ panelIconText: {
1120
+ type: 'string',
1121
+ },
1122
+ panelType: {
1123
+ enum: [
1124
+ 'info',
1125
+ 'note',
1126
+ 'tip',
1127
+ 'warning',
1128
+ 'error',
1129
+ 'success',
1130
+ 'custom',
1131
+ ],
1132
+ },
1133
+ },
1134
+ required: ['panelType'],
1135
+ type: 'object',
1078
1136
  },
1079
1137
  content: {
1080
- type: 'array',
1081
1138
  items: {
1082
- $ref: '#/definitions/listItem_node',
1139
+ anyOf: [
1140
+ {
1141
+ $ref: '#/definitions/codeBlock_with_no_marks_node',
1142
+ },
1143
+ {
1144
+ $ref: '#/definitions/blockCard_node',
1145
+ },
1146
+ {
1147
+ $ref: '#/definitions/paragraph_with_no_marks_node',
1148
+ },
1149
+ {
1150
+ $ref: '#/definitions/mediaSingle_caption_node',
1151
+ },
1152
+ {
1153
+ $ref: '#/definitions/mediaSingle_full_node',
1154
+ },
1155
+ {
1156
+ $ref: '#/definitions/taskList_node',
1157
+ },
1158
+ {
1159
+ $ref: '#/definitions/bulletList_node',
1160
+ },
1161
+ {
1162
+ $ref: '#/definitions/orderedList_node',
1163
+ },
1164
+ {
1165
+ $ref: '#/definitions/heading_with_no_marks_node',
1166
+ },
1167
+ {
1168
+ $ref: '#/definitions/mediaGroup_node',
1169
+ },
1170
+ {
1171
+ $ref: '#/definitions/decisionList_node',
1172
+ },
1173
+ {
1174
+ $ref: '#/definitions/rule_node',
1175
+ },
1176
+ ],
1083
1177
  },
1084
1178
  minItems: 1,
1179
+ type: 'array',
1085
1180
  },
1086
- attrs: {
1087
- type: 'object',
1088
- properties: {
1089
- order: {
1090
- type: 'number',
1091
- minimum: 0,
1092
- },
1093
- },
1094
- additionalProperties: false,
1181
+ type: {
1182
+ enum: ['panel'],
1095
1183
  },
1096
1184
  },
1097
- required: ['type', 'content'],
1098
- additionalProperties: false,
1099
- },
1100
- heading_node: {
1185
+ required: ['type', 'attrs', 'content'],
1101
1186
  type: 'object',
1187
+ },
1188
+ paragraph_node: {
1189
+ additionalProperties: false,
1102
1190
  properties: {
1103
- type: {
1104
- enum: ['heading'],
1105
- },
1106
1191
  content: {
1107
- type: 'array',
1108
1192
  items: {
1109
1193
  $ref: '#/definitions/inline_node',
1110
1194
  },
1195
+ type: 'array',
1111
1196
  },
1197
+ type: {
1198
+ enum: ['paragraph'],
1199
+ },
1200
+ },
1201
+ required: ['type'],
1202
+ type: 'object',
1203
+ },
1204
+ paragraph_with_alignment_node: {},
1205
+ paragraph_with_indentation_node: {},
1206
+ paragraph_with_no_marks_node: {},
1207
+ placeholder_node: {
1208
+ additionalProperties: false,
1209
+ properties: {
1112
1210
  attrs: {
1113
- type: 'object',
1211
+ additionalProperties: false,
1114
1212
  properties: {
1115
- level: {
1116
- type: 'number',
1117
- minimum: 1,
1118
- maximum: 6,
1213
+ text: {
1214
+ type: 'string',
1119
1215
  },
1120
1216
  },
1121
- required: ['level'],
1122
- additionalProperties: false,
1217
+ required: ['text'],
1218
+ type: 'object',
1123
1219
  },
1124
- },
1125
- required: ['type', 'attrs'],
1126
- additionalProperties: false,
1127
- },
1128
- heading_with_no_marks_node: {},
1129
- heading_with_alignment_node: {},
1130
- heading_with_indentation_node: {},
1131
- mediaGroup_node: {
1132
- type: 'object',
1133
- properties: {
1134
1220
  type: {
1135
- enum: ['mediaGroup'],
1136
- },
1137
- content: {
1138
- type: 'array',
1139
- items: {
1140
- $ref: '#/definitions/media_node',
1141
- },
1142
- minItems: 1,
1221
+ enum: ['placeholder'],
1143
1222
  },
1144
1223
  },
1145
- required: ['type', 'content'],
1146
- additionalProperties: false,
1147
- },
1148
- decisionItem_node: {
1224
+ required: ['type', 'attrs'],
1149
1225
  type: 'object',
1226
+ },
1227
+ rule_node: {
1228
+ additionalProperties: false,
1150
1229
  properties: {
1151
1230
  type: {
1152
- enum: ['decisionItem'],
1153
- },
1154
- content: {
1155
- type: 'array',
1156
- items: {
1157
- $ref: '#/definitions/inline_node',
1158
- },
1231
+ enum: ['rule'],
1159
1232
  },
1233
+ },
1234
+ required: ['type'],
1235
+ type: 'object',
1236
+ },
1237
+ status_node: {
1238
+ additionalProperties: false,
1239
+ properties: {
1160
1240
  attrs: {
1161
- type: 'object',
1241
+ additionalProperties: false,
1162
1242
  properties: {
1243
+ color: {
1244
+ enum: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green'],
1245
+ },
1163
1246
  localId: {
1164
1247
  type: 'string',
1165
1248
  },
1166
- state: {
1249
+ style: {
1250
+ type: 'string',
1251
+ },
1252
+ text: {
1253
+ minLength: 1,
1167
1254
  type: 'string',
1168
1255
  },
1169
1256
  },
1170
- required: ['localId', 'state'],
1171
- additionalProperties: false,
1257
+ required: ['text', 'color'],
1258
+ type: 'object',
1259
+ },
1260
+ type: {
1261
+ enum: ['status'],
1172
1262
  },
1173
1263
  },
1174
1264
  required: ['type', 'attrs'],
1175
- additionalProperties: false,
1176
- },
1177
- decisionList_node: {
1178
1265
  type: 'object',
1266
+ },
1267
+ strike_mark: {
1268
+ additionalProperties: false,
1179
1269
  properties: {
1180
1270
  type: {
1181
- enum: ['decisionList'],
1182
- },
1183
- content: {
1184
- type: 'array',
1185
- items: {
1186
- $ref: '#/definitions/decisionItem_node',
1187
- },
1188
- minItems: 1,
1189
- },
1190
- attrs: {
1191
- type: 'object',
1192
- properties: {
1193
- localId: {
1194
- type: 'string',
1195
- },
1196
- },
1197
- required: ['localId'],
1198
- additionalProperties: false,
1271
+ enum: ['strike'],
1199
1272
  },
1200
1273
  },
1201
- required: ['type', 'content', 'attrs'],
1202
- additionalProperties: false,
1203
- },
1204
- rule_node: {
1274
+ required: ['type'],
1205
1275
  type: 'object',
1276
+ },
1277
+ strong_mark: {
1278
+ additionalProperties: false,
1206
1279
  properties: {
1207
1280
  type: {
1208
- enum: ['rule'],
1281
+ enum: ['strong'],
1209
1282
  },
1210
1283
  },
1211
1284
  required: ['type'],
1212
- additionalProperties: false,
1213
- },
1214
- panel_node: {
1215
1285
  type: 'object',
1286
+ },
1287
+ subsup_mark: {
1288
+ additionalProperties: false,
1216
1289
  properties: {
1290
+ attrs: {
1291
+ additionalProperties: false,
1292
+ properties: {
1293
+ type: {
1294
+ enum: ['sub', 'sup'],
1295
+ },
1296
+ },
1297
+ required: ['type'],
1298
+ type: 'object',
1299
+ },
1217
1300
  type: {
1218
- enum: ['panel'],
1301
+ enum: ['subsup'],
1219
1302
  },
1303
+ },
1304
+ required: ['type', 'attrs'],
1305
+ type: 'object',
1306
+ },
1307
+ table_cell_node: {
1308
+ additionalProperties: false,
1309
+ properties: {
1220
1310
  attrs: {
1221
- type: 'object',
1311
+ additionalProperties: false,
1222
1312
  properties: {
1223
- panelType: {
1224
- enum: [
1225
- 'info',
1226
- 'note',
1227
- 'tip',
1228
- 'warning',
1229
- 'error',
1230
- 'success',
1231
- 'custom',
1232
- ],
1233
- },
1234
- panelIcon: {
1313
+ background: {
1235
1314
  type: 'string',
1236
1315
  },
1237
- panelIconId: {
1238
- type: 'string',
1316
+ colspan: {
1317
+ type: 'number',
1239
1318
  },
1240
- panelIconText: {
1241
- type: 'string',
1319
+ colwidth: {
1320
+ items: {
1321
+ type: 'number',
1322
+ },
1323
+ type: 'array',
1242
1324
  },
1243
- panelColor: {
1244
- type: 'string',
1325
+ rowspan: {
1326
+ type: 'number',
1245
1327
  },
1246
1328
  },
1247
- required: ['panelType'],
1248
- additionalProperties: false,
1329
+ type: 'object',
1249
1330
  },
1250
1331
  content: {
1251
- type: 'array',
1252
1332
  items: {
1253
1333
  anyOf: [
1254
1334
  {
@@ -1260,6 +1340,9 @@ const jsonWithTypes = {
1260
1340
  {
1261
1341
  $ref: '#/definitions/paragraph_with_no_marks_node',
1262
1342
  },
1343
+ {
1344
+ $ref: '#/definitions/paragraph_with_alignment_node',
1345
+ },
1263
1346
  {
1264
1347
  $ref: '#/definitions/mediaSingle_caption_node',
1265
1348
  },
@@ -1278,6 +1361,12 @@ const jsonWithTypes = {
1278
1361
  {
1279
1362
  $ref: '#/definitions/heading_with_no_marks_node',
1280
1363
  },
1364
+ {
1365
+ $ref: '#/definitions/heading_with_alignment_node',
1366
+ },
1367
+ {
1368
+ $ref: '#/definitions/heading_with_indentation_node',
1369
+ },
1281
1370
  {
1282
1371
  $ref: '#/definitions/mediaGroup_node',
1283
1372
  },
@@ -1287,152 +1376,141 @@ const jsonWithTypes = {
1287
1376
  {
1288
1377
  $ref: '#/definitions/rule_node',
1289
1378
  },
1290
- ],
1291
- },
1292
- minItems: 1,
1293
- },
1294
- },
1295
- required: ['type', 'attrs', 'content'],
1296
- additionalProperties: false,
1297
- },
1298
- blockquote_node: {
1299
- type: 'object',
1300
- properties: {
1301
- type: {
1302
- enum: ['blockquote'],
1303
- },
1304
- content: {
1305
- type: 'array',
1306
- items: {
1307
- anyOf: [
1308
1379
  {
1309
- $ref: '#/definitions/paragraph_with_no_marks_node',
1380
+ $ref: '#/definitions/panel_node',
1310
1381
  },
1311
1382
  {
1312
- $ref: '#/definitions/bulletList_node',
1383
+ $ref: '#/definitions/blockquote_node',
1313
1384
  },
1314
1385
  {
1315
- $ref: '#/definitions/orderedList_node',
1386
+ $ref: '#/definitions/extension_with_marks_node',
1387
+ },
1388
+ {
1389
+ $ref: '#/definitions/embedCard_node',
1390
+ },
1391
+ {
1392
+ $ref: '#/definitions/nestedExpand_with_no_marks_node',
1316
1393
  },
1317
1394
  ],
1318
1395
  },
1319
1396
  minItems: 1,
1397
+ type: 'array',
1398
+ },
1399
+ type: {
1400
+ enum: ['tableCell'],
1320
1401
  },
1321
1402
  },
1322
1403
  required: ['type', 'content'],
1323
- additionalProperties: false,
1324
- },
1325
- extension_node: {
1326
1404
  type: 'object',
1405
+ },
1406
+ table_header_node: {
1407
+ additionalProperties: false,
1327
1408
  properties: {
1328
- type: {
1329
- enum: ['extension'],
1330
- },
1331
1409
  attrs: {
1332
- type: 'object',
1410
+ additionalProperties: false,
1333
1411
  properties: {
1334
- extensionKey: {
1335
- type: 'string',
1336
- minLength: 1,
1337
- },
1338
- extensionType: {
1412
+ background: {
1339
1413
  type: 'string',
1340
- minLength: 1,
1341
1414
  },
1342
- parameters: {},
1343
- text: {
1344
- type: 'string',
1415
+ colspan: {
1416
+ type: 'number',
1345
1417
  },
1346
- layout: {
1347
- enum: ['wide', 'full-width', 'default'],
1418
+ colwidth: {
1419
+ items: {
1420
+ type: 'number',
1421
+ },
1422
+ type: 'array',
1348
1423
  },
1349
- localId: {
1350
- type: 'string',
1351
- minLength: 1,
1424
+ rowspan: {
1425
+ type: 'number',
1352
1426
  },
1353
1427
  },
1354
- required: ['extensionKey', 'extensionType'],
1355
- additionalProperties: false,
1428
+ type: 'object',
1429
+ },
1430
+ content: {
1431
+ items: {
1432
+ anyOf: [
1433
+ {
1434
+ $ref: '#/definitions/codeBlock_with_no_marks_node',
1435
+ },
1436
+ {
1437
+ $ref: '#/definitions/blockCard_node',
1438
+ },
1439
+ {
1440
+ $ref: '#/definitions/paragraph_with_no_marks_node',
1441
+ },
1442
+ {
1443
+ $ref: '#/definitions/paragraph_with_alignment_node',
1444
+ },
1445
+ {
1446
+ $ref: '#/definitions/mediaSingle_caption_node',
1447
+ },
1448
+ {
1449
+ $ref: '#/definitions/mediaSingle_full_node',
1450
+ },
1451
+ {
1452
+ $ref: '#/definitions/taskList_node',
1453
+ },
1454
+ {
1455
+ $ref: '#/definitions/bulletList_node',
1456
+ },
1457
+ {
1458
+ $ref: '#/definitions/orderedList_node',
1459
+ },
1460
+ {
1461
+ $ref: '#/definitions/heading_with_no_marks_node',
1462
+ },
1463
+ {
1464
+ $ref: '#/definitions/heading_with_alignment_node',
1465
+ },
1466
+ {
1467
+ $ref: '#/definitions/heading_with_indentation_node',
1468
+ },
1469
+ {
1470
+ $ref: '#/definitions/mediaGroup_node',
1471
+ },
1472
+ {
1473
+ $ref: '#/definitions/decisionList_node',
1474
+ },
1475
+ {
1476
+ $ref: '#/definitions/rule_node',
1477
+ },
1478
+ {
1479
+ $ref: '#/definitions/panel_node',
1480
+ },
1481
+ {
1482
+ $ref: '#/definitions/blockquote_node',
1483
+ },
1484
+ {
1485
+ $ref: '#/definitions/extension_with_marks_node',
1486
+ },
1487
+ {
1488
+ $ref: '#/definitions/embedCard_node',
1489
+ },
1490
+ {
1491
+ $ref: '#/definitions/nestedExpand_with_no_marks_node',
1492
+ },
1493
+ ],
1494
+ },
1495
+ minItems: 1,
1496
+ type: 'array',
1356
1497
  },
1357
- },
1358
- required: ['type', 'attrs'],
1359
- additionalProperties: false,
1360
- },
1361
- extension_with_marks_node: {},
1362
- embedCard_node: {
1363
- type: 'object',
1364
- properties: {
1365
1498
  type: {
1366
- enum: ['embedCard'],
1367
- },
1368
- attrs: {
1369
- type: 'object',
1370
- properties: {
1371
- originalWidth: {
1372
- type: 'number',
1373
- },
1374
- originalHeight: {
1375
- type: 'number',
1376
- },
1377
- url: {
1378
- type: 'string',
1379
- },
1380
- width: {
1381
- type: 'number',
1382
- minimum: 0,
1383
- maximum: 100,
1384
- },
1385
- layout: {
1386
- enum: [
1387
- 'wide',
1388
- 'full-width',
1389
- 'center',
1390
- 'wrap-right',
1391
- 'wrap-left',
1392
- 'align-end',
1393
- 'align-start',
1394
- ],
1395
- },
1396
- },
1397
- additionalProperties: false,
1398
- required: ['url', 'layout'],
1499
+ enum: ['tableHeader'],
1399
1500
  },
1400
1501
  },
1401
- required: ['type', 'attrs'],
1402
- additionalProperties: false,
1403
- },
1404
- nestedExpand_node: {
1502
+ required: ['type', 'content'],
1405
1503
  type: 'object',
1406
- properties: {
1407
- type: {
1408
- enum: ['nestedExpand'],
1409
- },
1410
- attrs: {
1411
- type: 'object',
1412
- properties: {
1413
- title: {
1414
- type: 'string',
1415
- },
1416
- },
1417
- additionalProperties: false,
1418
- },
1419
- content: {
1420
- $ref: '#/definitions/nestedExpand_content',
1421
- },
1422
- },
1423
- required: ['type', 'attrs', 'content'],
1424
- additionalProperties: false,
1425
1504
  },
1426
- nestedExpand_with_no_marks_node: {},
1427
1505
  table_node: {
1428
- type: 'object',
1506
+ additionalProperties: false,
1429
1507
  properties: {
1430
- type: {
1431
- enum: ['table'],
1432
- },
1433
1508
  attrs: {
1434
- type: 'object',
1509
+ additionalProperties: false,
1435
1510
  properties: {
1511
+ displayMode: {
1512
+ enum: ['default', 'fixed'],
1513
+ },
1436
1514
  isNumberColumnEnabled: {
1437
1515
  type: 'boolean',
1438
1516
  },
@@ -1447,43 +1525,39 @@ const jsonWithTypes = {
1447
1525
  ],
1448
1526
  },
1449
1527
  localId: {
1450
- type: 'string',
1451
1528
  minLength: 1,
1529
+ type: 'string',
1452
1530
  },
1453
1531
  width: {
1454
1532
  type: 'number',
1455
1533
  },
1456
- displayMode: {
1457
- enum: ['default', 'fixed'],
1458
- },
1459
1534
  },
1460
- additionalProperties: false,
1535
+ type: 'object',
1461
1536
  },
1462
1537
  content: {
1463
- type: 'array',
1464
1538
  items: {
1465
1539
  $ref: '#/definitions/table_row_node',
1466
1540
  },
1467
1541
  minItems: 1,
1542
+ type: 'array',
1468
1543
  },
1469
1544
  marks: {
1470
- type: 'array',
1471
1545
  items: {
1472
1546
  $ref: '#/definitions/fragment_mark',
1473
1547
  },
1548
+ type: 'array',
1549
+ },
1550
+ type: {
1551
+ enum: ['table'],
1474
1552
  },
1475
1553
  },
1476
1554
  required: ['type', 'content'],
1477
- additionalProperties: false,
1555
+ type: 'object',
1478
1556
  },
1479
1557
  table_row_node: {
1480
- type: 'object',
1558
+ additionalProperties: false,
1481
1559
  properties: {
1482
- type: {
1483
- enum: ['tableRow'],
1484
- },
1485
1560
  content: {
1486
- type: 'array',
1487
1561
  items: {
1488
1562
  anyOf: [
1489
1563
  {
@@ -1494,305 +1568,133 @@ const jsonWithTypes = {
1494
1568
  },
1495
1569
  ],
1496
1570
  },
1571
+ type: 'array',
1497
1572
  },
1498
- },
1499
- required: ['type', 'content'],
1500
- additionalProperties: false,
1501
- },
1502
- table_cell_node: {
1503
- type: 'object',
1504
- properties: {
1505
1573
  type: {
1506
- enum: ['tableCell'],
1507
- },
1508
- attrs: {
1509
- type: 'object',
1510
- properties: {
1511
- colspan: {
1512
- type: 'number',
1513
- },
1514
- rowspan: {
1515
- type: 'number',
1516
- },
1517
- colwidth: {
1518
- type: 'array',
1519
- items: {
1520
- type: 'number',
1521
- },
1522
- },
1523
- background: {
1524
- type: 'string',
1525
- },
1526
- },
1527
- additionalProperties: false,
1528
- },
1529
- content: {
1530
- $ref: '#/definitions/table_cell_content',
1574
+ enum: ['tableRow'],
1531
1575
  },
1532
1576
  },
1533
1577
  required: ['type', 'content'],
1534
- additionalProperties: false,
1535
- },
1536
- table_header_node: {
1537
1578
  type: 'object',
1538
- properties: {
1539
- type: {
1540
- enum: ['tableHeader'],
1541
- },
1542
- attrs: {
1543
- type: 'object',
1544
- properties: {
1545
- colspan: {
1546
- type: 'number',
1547
- },
1548
- rowspan: {
1549
- type: 'number',
1550
- },
1551
- colwidth: {
1552
- type: 'array',
1553
- items: {
1554
- type: 'number',
1555
- },
1556
- },
1557
- background: {
1558
- type: 'string',
1559
- },
1560
- },
1561
- additionalProperties: false,
1562
- },
1563
- content: {
1564
- $ref: '#/definitions/table_cell_content',
1565
- },
1566
- },
1567
- required: ['type', 'content'],
1568
- additionalProperties: false,
1569
1579
  },
1570
- expand_node: {
1571
- type: 'object',
1580
+ taskItem_node: {
1581
+ additionalProperties: false,
1572
1582
  properties: {
1573
- type: {
1574
- enum: ['expand'],
1575
- },
1576
1583
  attrs: {
1577
- type: 'object',
1584
+ additionalProperties: false,
1578
1585
  properties: {
1579
- title: {
1586
+ localId: {
1580
1587
  type: 'string',
1581
1588
  },
1589
+ state: {
1590
+ enum: ['TODO', 'DONE'],
1591
+ },
1582
1592
  },
1583
- additionalProperties: false,
1593
+ required: ['localId', 'state'],
1594
+ type: 'object',
1584
1595
  },
1585
1596
  content: {
1586
- type: 'array',
1587
1597
  items: {
1588
- $ref: '#/definitions/non_nestable_block_content',
1598
+ $ref: '#/definitions/inline_node',
1589
1599
  },
1590
- minItems: 1,
1600
+ type: 'array',
1601
+ },
1602
+ type: {
1603
+ enum: ['taskItem'],
1591
1604
  },
1592
1605
  },
1593
- required: ['type', 'attrs', 'content'],
1594
- additionalProperties: false,
1595
- },
1596
- expand_with_no_mark_node: {},
1597
- expand_with_breakout_mark_node: {},
1598
- bodiedExtension_node: {
1606
+ required: ['type', 'attrs'],
1599
1607
  type: 'object',
1608
+ },
1609
+ taskList_node: {
1610
+ additionalProperties: false,
1600
1611
  properties: {
1601
- type: {
1602
- enum: ['bodiedExtension'],
1603
- },
1604
1612
  attrs: {
1605
- type: 'object',
1613
+ additionalProperties: false,
1606
1614
  properties: {
1607
- extensionKey: {
1608
- type: 'string',
1609
- minLength: 1,
1610
- },
1611
- extensionType: {
1612
- type: 'string',
1613
- minLength: 1,
1614
- },
1615
- parameters: {},
1616
- text: {
1617
- type: 'string',
1618
- },
1619
- layout: {
1620
- enum: ['wide', 'full-width', 'default'],
1621
- },
1622
1615
  localId: {
1623
1616
  type: 'string',
1624
- minLength: 1,
1625
1617
  },
1626
1618
  },
1627
- required: ['extensionKey', 'extensionType'],
1628
- additionalProperties: false,
1629
- },
1630
- content: {
1631
- type: 'array',
1632
- items: {
1633
- $ref: '#/definitions/non_nestable_block_content',
1634
- },
1635
- minItems: 1,
1636
- },
1637
- },
1638
- required: ['type', 'attrs', 'content'],
1639
- additionalProperties: false,
1640
- },
1641
- bodiedExtension_with_marks_node: {},
1642
- layoutColumn_node: {
1643
- type: 'object',
1644
- properties: {
1645
- type: {
1646
- enum: ['layoutColumn'],
1647
- },
1648
- attrs: {
1619
+ required: ['localId'],
1649
1620
  type: 'object',
1650
- properties: {
1651
- width: {
1652
- type: 'number',
1653
- minimum: 0,
1654
- maximum: 100,
1655
- },
1656
- },
1657
- required: ['width'],
1658
- additionalProperties: false,
1659
1621
  },
1660
1622
  content: {
1661
- type: 'array',
1662
- items: {
1663
- $ref: '#/definitions/block_content',
1664
- },
1623
+ items: [
1624
+ {
1625
+ $ref: '#/definitions/taskItem_node',
1626
+ },
1627
+ {
1628
+ anyOf: [
1629
+ {
1630
+ $ref: '#/definitions/taskItem_node',
1631
+ },
1632
+ {
1633
+ $ref: '#/definitions/taskList_node',
1634
+ },
1635
+ ],
1636
+ },
1637
+ ],
1665
1638
  minItems: 1,
1639
+ type: 'array',
1640
+ },
1641
+ type: {
1642
+ enum: ['taskList'],
1666
1643
  },
1667
1644
  },
1668
1645
  required: ['type', 'attrs', 'content'],
1669
- additionalProperties: false,
1670
- },
1671
- layoutSection_node: {
1672
1646
  type: 'object',
1647
+ },
1648
+ textColor_mark: {
1649
+ additionalProperties: false,
1673
1650
  properties: {
1674
- type: {
1675
- enum: ['layoutSection'],
1676
- },
1677
- marks: {
1678
- type: 'array',
1679
- items: {
1680
- $ref: '#/definitions/breakout_mark',
1651
+ attrs: {
1652
+ additionalProperties: false,
1653
+ properties: {
1654
+ color: {
1655
+ pattern: '^#[0-9a-fA-F]{6}$',
1656
+ type: 'string',
1657
+ },
1681
1658
  },
1659
+ required: ['color'],
1660
+ type: 'object',
1682
1661
  },
1683
- content: {
1684
- type: 'array',
1685
- items: {
1686
- $ref: '#/definitions/layoutColumn_node',
1687
- },
1662
+ type: {
1663
+ enum: ['textColor'],
1688
1664
  },
1689
1665
  },
1690
- required: ['type', 'content'],
1691
- additionalProperties: false,
1692
- },
1693
- layoutSection_full_node: {},
1694
- doc_node: {
1666
+ required: ['type', 'attrs'],
1695
1667
  type: 'object',
1668
+ },
1669
+ text_node: {
1670
+ additionalProperties: false,
1696
1671
  properties: {
1697
- version: {
1698
- enum: [1],
1672
+ text: {
1673
+ minLength: 1,
1674
+ type: 'string',
1699
1675
  },
1700
1676
  type: {
1701
- enum: ['doc'],
1702
- },
1703
- content: {
1704
- type: 'array',
1705
- items: {
1706
- anyOf: [
1707
- {
1708
- $ref: '#/definitions/codeBlock_with_no_marks_node',
1709
- },
1710
- {
1711
- $ref: '#/definitions/codeBlock_with_marks_node',
1712
- },
1713
- {
1714
- $ref: '#/definitions/blockCard_node',
1715
- },
1716
- {
1717
- $ref: '#/definitions/paragraph_with_no_marks_node',
1718
- },
1719
- {
1720
- $ref: '#/definitions/paragraph_with_alignment_node',
1721
- },
1722
- {
1723
- $ref: '#/definitions/paragraph_with_indentation_node',
1724
- },
1725
- {
1726
- $ref: '#/definitions/mediaSingle_caption_node',
1727
- },
1728
- {
1729
- $ref: '#/definitions/mediaSingle_full_node',
1730
- },
1731
- {
1732
- $ref: '#/definitions/taskList_node',
1733
- },
1734
- {
1735
- $ref: '#/definitions/bulletList_node',
1736
- },
1737
- {
1738
- $ref: '#/definitions/orderedList_node',
1739
- },
1740
- {
1741
- $ref: '#/definitions/heading_with_no_marks_node',
1742
- },
1743
- {
1744
- $ref: '#/definitions/heading_with_alignment_node',
1745
- },
1746
- {
1747
- $ref: '#/definitions/heading_with_indentation_node',
1748
- },
1749
- {
1750
- $ref: '#/definitions/mediaGroup_node',
1751
- },
1752
- {
1753
- $ref: '#/definitions/decisionList_node',
1754
- },
1755
- {
1756
- $ref: '#/definitions/rule_node',
1757
- },
1758
- {
1759
- $ref: '#/definitions/panel_node',
1760
- },
1761
- {
1762
- $ref: '#/definitions/blockquote_node',
1763
- },
1764
- {
1765
- $ref: '#/definitions/extension_with_marks_node',
1766
- },
1767
- {
1768
- $ref: '#/definitions/embedCard_node',
1769
- },
1770
- {
1771
- $ref: '#/definitions/table_node',
1772
- },
1773
- {
1774
- $ref: '#/definitions/expand_with_no_mark_node',
1775
- },
1776
- {
1777
- $ref: '#/definitions/expand_with_breakout_mark_node',
1778
- },
1779
- {
1780
- $ref: '#/definitions/bodiedExtension_with_marks_node',
1781
- },
1782
- {
1783
- $ref: '#/definitions/layoutSection_full_node',
1784
- },
1785
- ],
1786
- },
1677
+ enum: ['text'],
1787
1678
  },
1788
1679
  },
1789
- required: ['version', 'type', 'content'],
1680
+ required: ['type', 'text'],
1681
+ type: 'object',
1682
+ },
1683
+ underline_mark: {
1790
1684
  additionalProperties: false,
1685
+ properties: {
1686
+ type: {
1687
+ enum: ['underline'],
1688
+ },
1689
+ },
1690
+ required: ['type'],
1691
+ type: 'object',
1791
1692
  },
1792
1693
  },
1793
1694
  };
1794
1695
 
1795
1696
  // New JSON, different to the old JSON schema
1697
+ /* TODO: nestedExpand_node variant with_no_mark is in use in ADF DSL, so nestedExpand_node was not generated.
1796
1698
  jsonWithTypes.definitions.nestedExpand_node.properties.content = {
1797
1699
  type: 'array',
1798
1700
  items: {
@@ -1840,6 +1742,8 @@ jsonWithTypes.definitions.nestedExpand_node.properties.content = {
1840
1742
  },
1841
1743
  minItems: 1,
1842
1744
  };
1745
+ */
1746
+ /* TODO: expand_node variant with_no_mark is in use in ADF DSL, so expand_node was not generated.
1843
1747
  jsonWithTypes.definitions.expand_node.properties.content.items = {
1844
1748
  anyOf: [
1845
1749
  {
@@ -1895,61 +1799,65 @@ jsonWithTypes.definitions.expand_node.properties.content.items = {
1895
1799
  },
1896
1800
  ],
1897
1801
  };
1898
- jsonWithTypes.definitions.bodiedExtension_node.properties.content.items = {
1899
- anyOf: [
1900
- {
1901
- $ref: '#/definitions/codeBlock_with_no_marks_node',
1902
- },
1903
- {
1904
- $ref: '#/definitions/blockCard_node',
1905
- },
1906
- {
1907
- $ref: '#/definitions/paragraph_with_no_marks_node',
1908
- },
1909
- {
1910
- $ref: '#/definitions/mediaSingle_caption_node',
1911
- },
1912
- {
1913
- $ref: '#/definitions/mediaSingle_full_node',
1914
- },
1915
- {
1916
- $ref: '#/definitions/taskList_node',
1917
- },
1918
- {
1919
- $ref: '#/definitions/bulletList_node',
1920
- },
1921
- {
1922
- $ref: '#/definitions/orderedList_node',
1923
- },
1924
- {
1925
- $ref: '#/definitions/heading_with_no_marks_node',
1926
- },
1927
- {
1928
- $ref: '#/definitions/mediaGroup_node',
1929
- },
1930
- {
1931
- $ref: '#/definitions/decisionList_node',
1932
- },
1933
- {
1934
- $ref: '#/definitions/rule_node',
1935
- },
1936
- {
1937
- $ref: '#/definitions/panel_node',
1938
- },
1939
- {
1940
- $ref: '#/definitions/blockquote_node',
1941
- },
1942
- {
1943
- $ref: '#/definitions/extension_with_marks_node',
1944
- },
1945
- {
1946
- $ref: '#/definitions/embedCard_node',
1947
- },
1948
- {
1949
- $ref: '#/definitions/table_node',
1950
- },
1951
- ],
1952
- };
1802
+ */
1803
+ /* TODO: bodiedExtension variant is in use in ADF DSL, so bodiedExtension_node was not generated
1804
+ jsonWithTypes.definitions.bodiedExtension_node.properties.content.items =
1805
+ {
1806
+ anyOf: [
1807
+ {
1808
+ $ref: '#/definitions/codeBlock_with_no_marks_node',
1809
+ },
1810
+ {
1811
+ $ref: '#/definitions/blockCard_node',
1812
+ },
1813
+ {
1814
+ $ref: '#/definitions/paragraph_with_no_marks_node',
1815
+ },
1816
+ {
1817
+ $ref: '#/definitions/mediaSingle_caption_node',
1818
+ },
1819
+ {
1820
+ $ref: '#/definitions/mediaSingle_full_node',
1821
+ },
1822
+ {
1823
+ $ref: '#/definitions/taskList_node',
1824
+ },
1825
+ {
1826
+ $ref: '#/definitions/bulletList_node',
1827
+ },
1828
+ {
1829
+ $ref: '#/definitions/orderedList_node',
1830
+ },
1831
+ {
1832
+ $ref: '#/definitions/heading_with_no_marks_node',
1833
+ },
1834
+ {
1835
+ $ref: '#/definitions/mediaGroup_node',
1836
+ },
1837
+ {
1838
+ $ref: '#/definitions/decisionList_node',
1839
+ },
1840
+ {
1841
+ $ref: '#/definitions/rule_node',
1842
+ },
1843
+ {
1844
+ $ref: '#/definitions/panel_node',
1845
+ },
1846
+ {
1847
+ $ref: '#/definitions/blockquote_node',
1848
+ },
1849
+ {
1850
+ $ref: '#/definitions/extension_with_marks_node',
1851
+ },
1852
+ {
1853
+ $ref: '#/definitions/embedCard_node',
1854
+ },
1855
+ {
1856
+ $ref: '#/definitions/table_node',
1857
+ },
1858
+ ],
1859
+ };
1860
+ */
1953
1861
  jsonWithTypes.definitions.table_cell_node.properties.content = {
1954
1862
  type: 'array',
1955
1863
  items: {
@@ -2086,6 +1994,8 @@ jsonWithTypes.definitions.table_header_node.properties.content = {
2086
1994
  },
2087
1995
  minItems: 1,
2088
1996
  };
1997
+
1998
+ /* TODO: not matching new ADF DSL
2089
1999
  jsonWithTypes.definitions.doc_node.properties.content.items.anyOf = [
2090
2000
  {
2091
2001
  $ref: '#/definitions/block_content',
@@ -2104,6 +2014,7 @@ jsonWithTypes.definitions.doc_node.properties.content.items.anyOf = [
2104
2014
  $ref: '#/definitions/paragraph_node',
2105
2015
  },
2106
2016
  ];
2017
+ */
2107
2018
 
2108
2019
  // Reorder the required list for diffing purposes
2109
2020
  jsonWithTypes.definitions.taskList_node.required = ['type', 'attrs', 'content'];