@atlaskit/adf-schema 37.0.3 → 37.1.19

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