@atlaskit/adf-schema 51.5.2 → 51.5.3

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.
@@ -0,0 +1,2919 @@
1
+ {
2
+ "$ref": "#/definitions/doc_node",
3
+ "description": "Schema for Atlassian Document Format.",
4
+ "$schema": "http://json-schema.org/draft-04/schema#",
5
+ "definitions": {
6
+ "alignment_mark": {
7
+ "type": "object",
8
+ "properties": {
9
+ "type": {
10
+ "enum": ["alignment"]
11
+ },
12
+ "attrs": {
13
+ "type": "object",
14
+ "properties": {
15
+ "align": {
16
+ "enum": ["center", "end"]
17
+ }
18
+ },
19
+ "required": ["align"],
20
+ "additionalProperties": false
21
+ }
22
+ },
23
+ "required": ["type", "attrs"],
24
+ "additionalProperties": false
25
+ },
26
+ "annotation_mark": {
27
+ "type": "object",
28
+ "properties": {
29
+ "type": {
30
+ "enum": ["annotation"]
31
+ },
32
+ "attrs": {
33
+ "type": "object",
34
+ "properties": {
35
+ "id": {
36
+ "type": "string"
37
+ },
38
+ "annotationType": {
39
+ "enum": ["inlineComment"]
40
+ }
41
+ },
42
+ "required": ["id", "annotationType"],
43
+ "additionalProperties": false
44
+ }
45
+ },
46
+ "required": ["type", "attrs"],
47
+ "additionalProperties": false
48
+ },
49
+ "backgroundColor_mark": {
50
+ "type": "object",
51
+ "properties": {
52
+ "type": {
53
+ "enum": ["backgroundColor"]
54
+ },
55
+ "attrs": {
56
+ "type": "object",
57
+ "properties": {
58
+ "color": {
59
+ "pattern": "^#[0-9a-fA-F]{6}$",
60
+ "type": "string"
61
+ }
62
+ },
63
+ "required": ["color"],
64
+ "additionalProperties": false
65
+ }
66
+ },
67
+ "required": ["type", "attrs"],
68
+ "additionalProperties": false
69
+ },
70
+ "block_content": {
71
+ "anyOf": [
72
+ {
73
+ "$ref": "#/definitions/blockCard_node"
74
+ },
75
+ {
76
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
77
+ },
78
+ {
79
+ "$ref": "#/definitions/paragraph_with_alignment_node"
80
+ },
81
+ {
82
+ "$ref": "#/definitions/paragraph_with_indentation_node"
83
+ },
84
+ {
85
+ "$ref": "#/definitions/mediaSingle_caption_node"
86
+ },
87
+ {
88
+ "$ref": "#/definitions/mediaSingle_full_node"
89
+ },
90
+ {
91
+ "$ref": "#/definitions/codeBlock_node"
92
+ },
93
+ {
94
+ "$ref": "#/definitions/taskList_node"
95
+ },
96
+ {
97
+ "$ref": "#/definitions/bulletList_node"
98
+ },
99
+ {
100
+ "$ref": "#/definitions/orderedList_node"
101
+ },
102
+ {
103
+ "$ref": "#/definitions/heading_with_no_marks_node"
104
+ },
105
+ {
106
+ "$ref": "#/definitions/heading_with_alignment_node"
107
+ },
108
+ {
109
+ "$ref": "#/definitions/heading_with_indentation_node"
110
+ },
111
+ {
112
+ "$ref": "#/definitions/mediaGroup_node"
113
+ },
114
+ {
115
+ "$ref": "#/definitions/decisionList_node"
116
+ },
117
+ {
118
+ "$ref": "#/definitions/rule_node"
119
+ },
120
+ {
121
+ "$ref": "#/definitions/panel_node"
122
+ },
123
+ {
124
+ "$ref": "#/definitions/blockquote_node"
125
+ },
126
+ {
127
+ "$ref": "#/definitions/extension_with_marks_node"
128
+ },
129
+ {
130
+ "$ref": "#/definitions/embedCard_node"
131
+ },
132
+ {
133
+ "$ref": "#/definitions/table_node"
134
+ },
135
+ {
136
+ "$ref": "#/definitions/expand_node"
137
+ },
138
+ {
139
+ "$ref": "#/definitions/bodiedExtension_with_marks_node"
140
+ }
141
+ ]
142
+ },
143
+ "blockCard_node": {
144
+ "type": "object",
145
+ "properties": {
146
+ "type": {
147
+ "enum": ["blockCard"]
148
+ },
149
+ "attrs": {
150
+ "anyOf": [
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "localId": {
155
+ "type": "string"
156
+ },
157
+ "url": {
158
+ "type": "string"
159
+ },
160
+ "datasource": {
161
+ "type": "object",
162
+ "additionalProperties": false,
163
+ "properties": {
164
+ "id": {
165
+ "type": "string"
166
+ },
167
+ "parameters": {},
168
+ "views": {
169
+ "items": {
170
+ "type": "object",
171
+ "properties": {
172
+ "properties": {},
173
+ "type": {
174
+ "type": "string"
175
+ }
176
+ },
177
+ "required": ["type"],
178
+ "additionalProperties": false
179
+ },
180
+ "minItems": 1,
181
+ "type": "array"
182
+ }
183
+ },
184
+ "required": ["id", "parameters", "views"]
185
+ },
186
+ "width": {
187
+ "type": "number"
188
+ },
189
+ "layout": {
190
+ "enum": [
191
+ "wide",
192
+ "full-width",
193
+ "center",
194
+ "wrap-right",
195
+ "wrap-left",
196
+ "align-end",
197
+ "align-start"
198
+ ]
199
+ }
200
+ },
201
+ "required": ["datasource"],
202
+ "additionalProperties": false
203
+ },
204
+ {
205
+ "type": "object",
206
+ "properties": {
207
+ "url": {
208
+ "type": "string"
209
+ },
210
+ "localId": {
211
+ "type": "string"
212
+ }
213
+ },
214
+ "required": ["url"],
215
+ "additionalProperties": false
216
+ },
217
+ {
218
+ "type": "object",
219
+ "properties": {
220
+ "data": {},
221
+ "localId": {
222
+ "type": "string"
223
+ }
224
+ },
225
+ "required": ["data"],
226
+ "additionalProperties": false
227
+ }
228
+ ]
229
+ }
230
+ },
231
+ "additionalProperties": false,
232
+ "required": ["type", "attrs"]
233
+ },
234
+ "blockquote_node": {
235
+ "type": "object",
236
+ "properties": {
237
+ "type": {
238
+ "enum": ["blockquote"]
239
+ },
240
+ "attrs": {
241
+ "type": "object",
242
+ "properties": {
243
+ "localId": {
244
+ "type": "string"
245
+ }
246
+ },
247
+ "additionalProperties": false
248
+ },
249
+ "content": {
250
+ "type": "array",
251
+ "items": {
252
+ "anyOf": [
253
+ {
254
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
255
+ },
256
+ {
257
+ "$ref": "#/definitions/orderedList_node"
258
+ },
259
+ {
260
+ "$ref": "#/definitions/bulletList_node"
261
+ },
262
+ {
263
+ "$ref": "#/definitions/codeBlock_node"
264
+ },
265
+ {
266
+ "$ref": "#/definitions/mediaSingle_caption_node"
267
+ },
268
+ {
269
+ "$ref": "#/definitions/mediaSingle_full_node"
270
+ },
271
+ {
272
+ "$ref": "#/definitions/mediaGroup_node"
273
+ },
274
+ {
275
+ "$ref": "#/definitions/extension_with_marks_node"
276
+ }
277
+ ]
278
+ },
279
+ "minItems": 1
280
+ }
281
+ },
282
+ "additionalProperties": false,
283
+ "required": ["type", "content"]
284
+ },
285
+ "blockTaskItem_node": {
286
+ "type": "object",
287
+ "properties": {
288
+ "type": {
289
+ "enum": ["blockTaskItem"]
290
+ },
291
+ "attrs": {
292
+ "type": "object",
293
+ "properties": {
294
+ "localId": {
295
+ "type": "string"
296
+ },
297
+ "state": {
298
+ "enum": ["TODO", "DONE"]
299
+ }
300
+ },
301
+ "required": ["localId", "state"],
302
+ "additionalProperties": false
303
+ },
304
+ "content": {
305
+ "type": "array",
306
+ "items": [
307
+ {
308
+ "anyOf": [
309
+ {
310
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
311
+ },
312
+ {
313
+ "$ref": "#/definitions/extension_with_marks_node"
314
+ }
315
+ ]
316
+ },
317
+ {
318
+ "anyOf": [
319
+ {
320
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
321
+ },
322
+ {
323
+ "$ref": "#/definitions/extension_with_marks_node"
324
+ }
325
+ ]
326
+ }
327
+ ],
328
+ "minItems": 1
329
+ }
330
+ },
331
+ "additionalProperties": false,
332
+ "required": ["type", "attrs", "content"]
333
+ },
334
+ "bodiedExtension_node": {
335
+ "type": "object",
336
+ "properties": {
337
+ "type": {
338
+ "enum": ["bodiedExtension"]
339
+ },
340
+ "marks": {
341
+ "type": "array"
342
+ },
343
+ "attrs": {
344
+ "type": "object",
345
+ "properties": {
346
+ "extensionKey": {
347
+ "minLength": 1,
348
+ "type": "string"
349
+ },
350
+ "extensionType": {
351
+ "minLength": 1,
352
+ "type": "string"
353
+ },
354
+ "parameters": {},
355
+ "text": {
356
+ "type": "string"
357
+ },
358
+ "layout": {
359
+ "enum": ["wide", "full-width", "default"]
360
+ },
361
+ "localId": {
362
+ "minLength": 1,
363
+ "type": "string"
364
+ }
365
+ },
366
+ "required": ["extensionKey", "extensionType"],
367
+ "additionalProperties": false
368
+ },
369
+ "content": {
370
+ "type": "array",
371
+ "items": {
372
+ "$ref": "#/definitions/non_nestable_block_content"
373
+ },
374
+ "minItems": 1
375
+ }
376
+ },
377
+ "additionalProperties": false,
378
+ "required": ["type", "attrs", "content"]
379
+ },
380
+ "bodiedExtension_with_marks_node": {
381
+ "allOf": [
382
+ {
383
+ "$ref": "#/definitions/bodiedExtension_node"
384
+ },
385
+ {
386
+ "type": "object",
387
+ "properties": {
388
+ "marks": {
389
+ "type": "array",
390
+ "items": {
391
+ "anyOf": [
392
+ {
393
+ "$ref": "#/definitions/dataConsumer_mark"
394
+ },
395
+ {
396
+ "$ref": "#/definitions/fragment_mark"
397
+ }
398
+ ]
399
+ }
400
+ }
401
+ },
402
+ "additionalProperties": true
403
+ }
404
+ ]
405
+ },
406
+ "bodiedSyncBlock_node": {
407
+ "type": "object",
408
+ "properties": {
409
+ "type": {
410
+ "enum": ["bodiedSyncBlock"]
411
+ },
412
+ "marks": {
413
+ "type": "array",
414
+ "items": {
415
+ "$ref": "#/definitions/breakout_mark"
416
+ }
417
+ },
418
+ "attrs": {
419
+ "type": "object",
420
+ "properties": {
421
+ "resourceId": {
422
+ "type": "string"
423
+ },
424
+ "localId": {
425
+ "type": "string"
426
+ }
427
+ },
428
+ "required": ["resourceId", "localId"],
429
+ "additionalProperties": false
430
+ },
431
+ "content": {
432
+ "type": "array",
433
+ "items": {
434
+ "anyOf": [
435
+ {
436
+ "$ref": "#/definitions/paragraph_node"
437
+ },
438
+ {
439
+ "$ref": "#/definitions/paragraph_with_alignment_node"
440
+ },
441
+ {
442
+ "$ref": "#/definitions/paragraph_with_indentation_node"
443
+ },
444
+ {
445
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
446
+ },
447
+ {
448
+ "$ref": "#/definitions/blockCard_node"
449
+ },
450
+ {
451
+ "$ref": "#/definitions/blockquote_node"
452
+ },
453
+ {
454
+ "$ref": "#/definitions/bulletList_node"
455
+ },
456
+ {
457
+ "$ref": "#/definitions/codeBlock_node"
458
+ },
459
+ {
460
+ "$ref": "#/definitions/decisionList_node"
461
+ },
462
+ {
463
+ "$ref": "#/definitions/embedCard_node"
464
+ },
465
+ {
466
+ "$ref": "#/definitions/expand_node"
467
+ },
468
+ {
469
+ "$ref": "#/definitions/heading_node"
470
+ },
471
+ {
472
+ "$ref": "#/definitions/heading_with_alignment_node"
473
+ },
474
+ {
475
+ "$ref": "#/definitions/heading_with_indentation_node"
476
+ },
477
+ {
478
+ "$ref": "#/definitions/heading_with_no_marks_node"
479
+ },
480
+ {
481
+ "$ref": "#/definitions/layoutSection_node"
482
+ },
483
+ {
484
+ "$ref": "#/definitions/layoutSection_full_node"
485
+ },
486
+ {
487
+ "$ref": "#/definitions/mediaGroup_node"
488
+ },
489
+ {
490
+ "$ref": "#/definitions/mediaSingle_node"
491
+ },
492
+ {
493
+ "$ref": "#/definitions/mediaSingle_caption_node"
494
+ },
495
+ {
496
+ "$ref": "#/definitions/mediaSingle_full_node"
497
+ },
498
+ {
499
+ "$ref": "#/definitions/orderedList_node"
500
+ },
501
+ {
502
+ "$ref": "#/definitions/panel_node"
503
+ },
504
+ {
505
+ "$ref": "#/definitions/rule_node"
506
+ },
507
+ {
508
+ "$ref": "#/definitions/table_node"
509
+ },
510
+ {
511
+ "$ref": "#/definitions/taskList_node"
512
+ }
513
+ ]
514
+ },
515
+ "minItems": 1
516
+ }
517
+ },
518
+ "additionalProperties": false,
519
+ "required": ["type", "attrs", "content"]
520
+ },
521
+ "border_mark": {
522
+ "type": "object",
523
+ "properties": {
524
+ "type": {
525
+ "enum": ["border"]
526
+ },
527
+ "attrs": {
528
+ "type": "object",
529
+ "properties": {
530
+ "size": {
531
+ "type": "number",
532
+ "minimum": 1,
533
+ "maximum": 3
534
+ },
535
+ "color": {
536
+ "pattern": "^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$",
537
+ "type": "string"
538
+ }
539
+ },
540
+ "required": ["size", "color"],
541
+ "additionalProperties": false
542
+ }
543
+ },
544
+ "required": ["type", "attrs"],
545
+ "additionalProperties": false
546
+ },
547
+ "breakout_mark": {
548
+ "type": "object",
549
+ "properties": {
550
+ "type": {
551
+ "enum": ["breakout"]
552
+ },
553
+ "attrs": {
554
+ "type": "object",
555
+ "properties": {
556
+ "mode": {
557
+ "enum": ["wide", "full-width"]
558
+ },
559
+ "width": {
560
+ "type": "number"
561
+ }
562
+ },
563
+ "required": ["mode"],
564
+ "additionalProperties": false
565
+ }
566
+ },
567
+ "required": ["type", "attrs"],
568
+ "additionalProperties": false
569
+ },
570
+ "bulletList_node": {
571
+ "type": "object",
572
+ "properties": {
573
+ "type": {
574
+ "enum": ["bulletList"]
575
+ },
576
+ "attrs": {
577
+ "type": "object",
578
+ "properties": {
579
+ "localId": {
580
+ "type": "string"
581
+ }
582
+ },
583
+ "additionalProperties": false
584
+ },
585
+ "content": {
586
+ "type": "array",
587
+ "items": {
588
+ "$ref": "#/definitions/listItem_node"
589
+ },
590
+ "minItems": 1
591
+ }
592
+ },
593
+ "additionalProperties": false,
594
+ "required": ["type", "content"]
595
+ },
596
+ "caption_node": {
597
+ "type": "object",
598
+ "properties": {
599
+ "type": {
600
+ "enum": ["caption"]
601
+ },
602
+ "attrs": {
603
+ "type": "object",
604
+ "properties": {
605
+ "localId": {
606
+ "type": "string"
607
+ }
608
+ },
609
+ "additionalProperties": false
610
+ },
611
+ "content": {
612
+ "type": "array",
613
+ "items": {
614
+ "anyOf": [
615
+ {
616
+ "$ref": "#/definitions/hardBreak_node"
617
+ },
618
+ {
619
+ "$ref": "#/definitions/mention_node"
620
+ },
621
+ {
622
+ "$ref": "#/definitions/emoji_node"
623
+ },
624
+ {
625
+ "$ref": "#/definitions/date_node"
626
+ },
627
+ {
628
+ "$ref": "#/definitions/placeholder_node"
629
+ },
630
+ {
631
+ "$ref": "#/definitions/inlineCard_node"
632
+ },
633
+ {
634
+ "$ref": "#/definitions/status_node"
635
+ },
636
+ {
637
+ "$ref": "#/definitions/formatted_text_inline_node"
638
+ },
639
+ {
640
+ "$ref": "#/definitions/code_inline_node"
641
+ }
642
+ ]
643
+ }
644
+ }
645
+ },
646
+ "additionalProperties": false,
647
+ "required": ["type"]
648
+ },
649
+ "code_inline_node": {
650
+ "allOf": [
651
+ {
652
+ "$ref": "#/definitions/text_node"
653
+ },
654
+ {
655
+ "type": "object",
656
+ "properties": {
657
+ "marks": {
658
+ "type": "array",
659
+ "items": {
660
+ "anyOf": [
661
+ {
662
+ "$ref": "#/definitions/code_mark"
663
+ },
664
+ {
665
+ "$ref": "#/definitions/link_mark"
666
+ },
667
+ {
668
+ "$ref": "#/definitions/annotation_mark"
669
+ }
670
+ ]
671
+ }
672
+ }
673
+ },
674
+ "additionalProperties": true
675
+ }
676
+ ]
677
+ },
678
+ "code_mark": {
679
+ "type": "object",
680
+ "properties": {
681
+ "type": {
682
+ "enum": ["code"]
683
+ }
684
+ },
685
+ "required": ["type"],
686
+ "additionalProperties": false
687
+ },
688
+ "codeBlock_node": {
689
+ "type": "object",
690
+ "properties": {
691
+ "type": {
692
+ "enum": ["codeBlock"]
693
+ },
694
+ "marks": {
695
+ "type": "array",
696
+ "maxItems": 0
697
+ },
698
+ "attrs": {
699
+ "type": "object",
700
+ "properties": {
701
+ "language": {
702
+ "type": "string"
703
+ },
704
+ "uniqueId": {
705
+ "type": "string"
706
+ },
707
+ "localId": {
708
+ "type": "string"
709
+ }
710
+ },
711
+ "additionalProperties": false
712
+ },
713
+ "content": {
714
+ "type": "array",
715
+ "items": {
716
+ "$ref": "#/definitions/text_with_no_marks_node"
717
+ }
718
+ }
719
+ },
720
+ "additionalProperties": false,
721
+ "required": ["type"]
722
+ },
723
+ "codeBlock_root_only_node": {
724
+ "type": "object",
725
+ "properties": {
726
+ "type": {
727
+ "enum": ["codeBlock"]
728
+ },
729
+ "marks": {
730
+ "type": "array",
731
+ "items": {
732
+ "$ref": "#/definitions/breakout_mark"
733
+ }
734
+ },
735
+ "attrs": {
736
+ "type": "object",
737
+ "properties": {
738
+ "language": {
739
+ "type": "string"
740
+ },
741
+ "uniqueId": {
742
+ "type": "string"
743
+ },
744
+ "localId": {
745
+ "type": "string"
746
+ }
747
+ },
748
+ "additionalProperties": false
749
+ },
750
+ "content": {
751
+ "type": "array",
752
+ "items": {
753
+ "$ref": "#/definitions/text_with_no_marks_node"
754
+ }
755
+ }
756
+ },
757
+ "additionalProperties": false,
758
+ "required": ["type"]
759
+ },
760
+ "dataConsumer_mark": {
761
+ "type": "object",
762
+ "properties": {
763
+ "type": {
764
+ "enum": ["dataConsumer"]
765
+ },
766
+ "attrs": {
767
+ "type": "object",
768
+ "properties": {
769
+ "sources": {
770
+ "type": "array",
771
+ "items": {
772
+ "type": "string"
773
+ },
774
+ "minItems": 1
775
+ }
776
+ },
777
+ "required": ["sources"],
778
+ "additionalProperties": false
779
+ }
780
+ },
781
+ "required": ["type", "attrs"],
782
+ "additionalProperties": false
783
+ },
784
+ "date_node": {
785
+ "type": "object",
786
+ "properties": {
787
+ "type": {
788
+ "enum": ["date"]
789
+ },
790
+ "attrs": {
791
+ "type": "object",
792
+ "properties": {
793
+ "timestamp": {
794
+ "minLength": 1,
795
+ "type": "string"
796
+ },
797
+ "localId": {
798
+ "type": "string"
799
+ }
800
+ },
801
+ "required": ["timestamp"],
802
+ "additionalProperties": false
803
+ }
804
+ },
805
+ "additionalProperties": false,
806
+ "required": ["type", "attrs"]
807
+ },
808
+ "decisionItem_node": {
809
+ "type": "object",
810
+ "properties": {
811
+ "type": {
812
+ "enum": ["decisionItem"]
813
+ },
814
+ "attrs": {
815
+ "type": "object",
816
+ "properties": {
817
+ "localId": {
818
+ "type": "string"
819
+ },
820
+ "state": {
821
+ "type": "string"
822
+ }
823
+ },
824
+ "required": ["localId", "state"],
825
+ "additionalProperties": false
826
+ },
827
+ "content": {
828
+ "type": "array",
829
+ "items": {
830
+ "$ref": "#/definitions/inline_node"
831
+ }
832
+ }
833
+ },
834
+ "additionalProperties": false,
835
+ "required": ["type", "attrs"]
836
+ },
837
+ "decisionList_node": {
838
+ "type": "object",
839
+ "properties": {
840
+ "type": {
841
+ "enum": ["decisionList"]
842
+ },
843
+ "attrs": {
844
+ "type": "object",
845
+ "properties": {
846
+ "localId": {
847
+ "type": "string"
848
+ }
849
+ },
850
+ "required": ["localId"],
851
+ "additionalProperties": false
852
+ },
853
+ "content": {
854
+ "type": "array",
855
+ "items": {
856
+ "$ref": "#/definitions/decisionItem_node"
857
+ },
858
+ "minItems": 1
859
+ }
860
+ },
861
+ "additionalProperties": false,
862
+ "required": ["type", "attrs", "content"]
863
+ },
864
+ "doc_node": {
865
+ "type": "object",
866
+ "properties": {
867
+ "type": {
868
+ "enum": ["doc"]
869
+ },
870
+ "content": {
871
+ "type": "array",
872
+ "items": {
873
+ "anyOf": [
874
+ {
875
+ "$ref": "#/definitions/blockCard_node"
876
+ },
877
+ {
878
+ "$ref": "#/definitions/codeBlock_node"
879
+ },
880
+ {
881
+ "$ref": "#/definitions/mediaSingle_caption_node"
882
+ },
883
+ {
884
+ "$ref": "#/definitions/mediaSingle_full_node"
885
+ },
886
+ {
887
+ "$ref": "#/definitions/paragraph_with_alignment_node"
888
+ },
889
+ {
890
+ "$ref": "#/definitions/paragraph_with_indentation_node"
891
+ },
892
+ {
893
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
894
+ },
895
+ {
896
+ "$ref": "#/definitions/taskList_node"
897
+ },
898
+ {
899
+ "$ref": "#/definitions/orderedList_node"
900
+ },
901
+ {
902
+ "$ref": "#/definitions/bulletList_node"
903
+ },
904
+ {
905
+ "$ref": "#/definitions/blockquote_node"
906
+ },
907
+ {
908
+ "$ref": "#/definitions/decisionList_node"
909
+ },
910
+ {
911
+ "$ref": "#/definitions/embedCard_node"
912
+ },
913
+ {
914
+ "$ref": "#/definitions/extension_with_marks_node"
915
+ },
916
+ {
917
+ "$ref": "#/definitions/heading_with_indentation_node"
918
+ },
919
+ {
920
+ "$ref": "#/definitions/heading_with_no_marks_node"
921
+ },
922
+ {
923
+ "$ref": "#/definitions/heading_with_alignment_node"
924
+ },
925
+ {
926
+ "$ref": "#/definitions/mediaGroup_node"
927
+ },
928
+ {
929
+ "$ref": "#/definitions/rule_node"
930
+ },
931
+ {
932
+ "$ref": "#/definitions/panel_node"
933
+ },
934
+ {
935
+ "$ref": "#/definitions/table_node"
936
+ },
937
+ {
938
+ "$ref": "#/definitions/bodiedExtension_with_marks_node"
939
+ },
940
+ {
941
+ "$ref": "#/definitions/expand_node"
942
+ },
943
+ {
944
+ "$ref": "#/definitions/codeBlock_root_only_node"
945
+ },
946
+ {
947
+ "$ref": "#/definitions/layoutSection_full_node"
948
+ },
949
+ {
950
+ "$ref": "#/definitions/expand_root_only_node"
951
+ },
952
+ {
953
+ "$ref": "#/definitions/syncBlock_node"
954
+ },
955
+ {
956
+ "$ref": "#/definitions/bodiedSyncBlock_node"
957
+ }
958
+ ]
959
+ }
960
+ },
961
+ "version": {
962
+ "enum": [1]
963
+ }
964
+ },
965
+ "additionalProperties": false,
966
+ "required": ["version", "type", "content"]
967
+ },
968
+ "em_mark": {
969
+ "type": "object",
970
+ "properties": {
971
+ "type": {
972
+ "enum": ["em"]
973
+ }
974
+ },
975
+ "required": ["type"],
976
+ "additionalProperties": false
977
+ },
978
+ "embedCard_node": {
979
+ "type": "object",
980
+ "properties": {
981
+ "type": {
982
+ "enum": ["embedCard"]
983
+ },
984
+ "attrs": {
985
+ "type": "object",
986
+ "properties": {
987
+ "url": {
988
+ "type": "string"
989
+ },
990
+ "layout": {
991
+ "enum": [
992
+ "wide",
993
+ "full-width",
994
+ "center",
995
+ "wrap-right",
996
+ "wrap-left",
997
+ "align-end",
998
+ "align-start"
999
+ ]
1000
+ },
1001
+ "width": {
1002
+ "type": "number",
1003
+ "maximum": 100,
1004
+ "minimum": 0
1005
+ },
1006
+ "originalHeight": {
1007
+ "type": "number"
1008
+ },
1009
+ "originalWidth": {
1010
+ "type": "number"
1011
+ },
1012
+ "localId": {
1013
+ "type": "string"
1014
+ }
1015
+ },
1016
+ "required": ["url", "layout"],
1017
+ "additionalProperties": false
1018
+ }
1019
+ },
1020
+ "additionalProperties": false,
1021
+ "required": ["type", "attrs"]
1022
+ },
1023
+ "emoji_node": {
1024
+ "type": "object",
1025
+ "properties": {
1026
+ "type": {
1027
+ "enum": ["emoji"]
1028
+ },
1029
+ "attrs": {
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "shortName": {
1033
+ "type": "string"
1034
+ },
1035
+ "id": {
1036
+ "type": "string"
1037
+ },
1038
+ "text": {
1039
+ "type": "string"
1040
+ },
1041
+ "localId": {
1042
+ "type": "string"
1043
+ }
1044
+ },
1045
+ "required": ["shortName"],
1046
+ "additionalProperties": false
1047
+ }
1048
+ },
1049
+ "additionalProperties": false,
1050
+ "required": ["type", "attrs"]
1051
+ },
1052
+ "expand_node": {
1053
+ "type": "object",
1054
+ "properties": {
1055
+ "type": {
1056
+ "enum": ["expand"]
1057
+ },
1058
+ "marks": {
1059
+ "type": "array",
1060
+ "maxItems": 0
1061
+ },
1062
+ "attrs": {
1063
+ "type": "object",
1064
+ "properties": {
1065
+ "title": {
1066
+ "type": "string"
1067
+ },
1068
+ "localId": {
1069
+ "type": "string"
1070
+ }
1071
+ },
1072
+ "additionalProperties": false
1073
+ },
1074
+ "content": {
1075
+ "type": "array",
1076
+ "items": {
1077
+ "anyOf": [
1078
+ {
1079
+ "$ref": "#/definitions/non_nestable_block_content"
1080
+ },
1081
+ {
1082
+ "$ref": "#/definitions/nestedExpand_with_no_marks_node"
1083
+ }
1084
+ ]
1085
+ },
1086
+ "minItems": 1
1087
+ }
1088
+ },
1089
+ "additionalProperties": false,
1090
+ "required": ["type", "content"]
1091
+ },
1092
+ "expand_root_only_node": {
1093
+ "type": "object",
1094
+ "properties": {
1095
+ "type": {
1096
+ "enum": ["expand"]
1097
+ },
1098
+ "marks": {
1099
+ "type": "array",
1100
+ "items": {
1101
+ "$ref": "#/definitions/breakout_mark"
1102
+ }
1103
+ },
1104
+ "attrs": {
1105
+ "type": "object",
1106
+ "properties": {
1107
+ "title": {
1108
+ "type": "string"
1109
+ },
1110
+ "localId": {
1111
+ "type": "string"
1112
+ }
1113
+ },
1114
+ "additionalProperties": false
1115
+ },
1116
+ "content": {
1117
+ "type": "array",
1118
+ "items": {
1119
+ "anyOf": [
1120
+ {
1121
+ "$ref": "#/definitions/non_nestable_block_content"
1122
+ },
1123
+ {
1124
+ "$ref": "#/definitions/nestedExpand_with_no_marks_node"
1125
+ }
1126
+ ]
1127
+ },
1128
+ "minItems": 1
1129
+ }
1130
+ },
1131
+ "additionalProperties": false,
1132
+ "required": ["type", "content"]
1133
+ },
1134
+ "extension_node": {
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "type": {
1138
+ "enum": ["extension"]
1139
+ },
1140
+ "marks": {
1141
+ "type": "array"
1142
+ },
1143
+ "attrs": {
1144
+ "type": "object",
1145
+ "properties": {
1146
+ "extensionKey": {
1147
+ "minLength": 1,
1148
+ "type": "string"
1149
+ },
1150
+ "extensionType": {
1151
+ "minLength": 1,
1152
+ "type": "string"
1153
+ },
1154
+ "parameters": {},
1155
+ "text": {
1156
+ "type": "string"
1157
+ },
1158
+ "layout": {
1159
+ "enum": ["wide", "full-width", "default"]
1160
+ },
1161
+ "localId": {
1162
+ "minLength": 1,
1163
+ "type": "string"
1164
+ }
1165
+ },
1166
+ "required": ["extensionKey", "extensionType"],
1167
+ "additionalProperties": false
1168
+ }
1169
+ },
1170
+ "additionalProperties": false,
1171
+ "required": ["type", "attrs"]
1172
+ },
1173
+ "extension_with_marks_node": {
1174
+ "allOf": [
1175
+ {
1176
+ "$ref": "#/definitions/extension_node"
1177
+ },
1178
+ {
1179
+ "type": "object",
1180
+ "properties": {
1181
+ "marks": {
1182
+ "type": "array",
1183
+ "items": {
1184
+ "anyOf": [
1185
+ {
1186
+ "$ref": "#/definitions/dataConsumer_mark"
1187
+ },
1188
+ {
1189
+ "$ref": "#/definitions/fragment_mark"
1190
+ }
1191
+ ]
1192
+ }
1193
+ }
1194
+ },
1195
+ "additionalProperties": true
1196
+ }
1197
+ ]
1198
+ },
1199
+ "formatted_text_inline_node": {
1200
+ "allOf": [
1201
+ {
1202
+ "$ref": "#/definitions/text_node"
1203
+ },
1204
+ {
1205
+ "type": "object",
1206
+ "properties": {
1207
+ "marks": {
1208
+ "type": "array",
1209
+ "items": {
1210
+ "anyOf": [
1211
+ {
1212
+ "$ref": "#/definitions/link_mark"
1213
+ },
1214
+ {
1215
+ "$ref": "#/definitions/em_mark"
1216
+ },
1217
+ {
1218
+ "$ref": "#/definitions/strong_mark"
1219
+ },
1220
+ {
1221
+ "$ref": "#/definitions/strike_mark"
1222
+ },
1223
+ {
1224
+ "$ref": "#/definitions/subsup_mark"
1225
+ },
1226
+ {
1227
+ "$ref": "#/definitions/underline_mark"
1228
+ },
1229
+ {
1230
+ "$ref": "#/definitions/textColor_mark"
1231
+ },
1232
+ {
1233
+ "$ref": "#/definitions/annotation_mark"
1234
+ },
1235
+ {
1236
+ "$ref": "#/definitions/backgroundColor_mark"
1237
+ }
1238
+ ]
1239
+ }
1240
+ }
1241
+ },
1242
+ "additionalProperties": true
1243
+ }
1244
+ ]
1245
+ },
1246
+ "fragment_mark": {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "type": {
1250
+ "enum": ["fragment"]
1251
+ },
1252
+ "attrs": {
1253
+ "type": "object",
1254
+ "properties": {
1255
+ "localId": {
1256
+ "minLength": 1,
1257
+ "type": "string"
1258
+ },
1259
+ "name": {
1260
+ "type": "string"
1261
+ }
1262
+ },
1263
+ "required": ["localId"],
1264
+ "additionalProperties": false
1265
+ }
1266
+ },
1267
+ "required": ["type", "attrs"],
1268
+ "additionalProperties": false
1269
+ },
1270
+ "hardBreak_node": {
1271
+ "type": "object",
1272
+ "properties": {
1273
+ "type": {
1274
+ "enum": ["hardBreak"]
1275
+ },
1276
+ "attrs": {
1277
+ "type": "object",
1278
+ "properties": {
1279
+ "text": {
1280
+ "enum": ["\n"]
1281
+ },
1282
+ "localId": {
1283
+ "type": "string"
1284
+ }
1285
+ },
1286
+ "additionalProperties": false
1287
+ }
1288
+ },
1289
+ "additionalProperties": false,
1290
+ "required": ["type"]
1291
+ },
1292
+ "heading_node": {
1293
+ "type": "object",
1294
+ "properties": {
1295
+ "type": {
1296
+ "enum": ["heading"]
1297
+ },
1298
+ "marks": {
1299
+ "type": "array"
1300
+ },
1301
+ "attrs": {
1302
+ "type": "object",
1303
+ "properties": {
1304
+ "level": {
1305
+ "type": "number",
1306
+ "minimum": 1,
1307
+ "maximum": 6
1308
+ },
1309
+ "localId": {
1310
+ "type": "string"
1311
+ }
1312
+ },
1313
+ "required": ["level"],
1314
+ "additionalProperties": false
1315
+ },
1316
+ "content": {
1317
+ "type": "array",
1318
+ "items": {
1319
+ "$ref": "#/definitions/inline_node"
1320
+ }
1321
+ }
1322
+ },
1323
+ "additionalProperties": false,
1324
+ "required": ["type", "attrs"]
1325
+ },
1326
+ "heading_with_alignment_node": {
1327
+ "allOf": [
1328
+ {
1329
+ "$ref": "#/definitions/heading_node"
1330
+ },
1331
+ {
1332
+ "type": "object",
1333
+ "properties": {
1334
+ "marks": {
1335
+ "type": "array",
1336
+ "items": {
1337
+ "$ref": "#/definitions/alignment_mark"
1338
+ }
1339
+ }
1340
+ },
1341
+ "additionalProperties": true
1342
+ }
1343
+ ]
1344
+ },
1345
+ "heading_with_indentation_node": {
1346
+ "allOf": [
1347
+ {
1348
+ "$ref": "#/definitions/heading_node"
1349
+ },
1350
+ {
1351
+ "type": "object",
1352
+ "properties": {
1353
+ "marks": {
1354
+ "type": "array",
1355
+ "items": {
1356
+ "$ref": "#/definitions/indentation_mark"
1357
+ }
1358
+ }
1359
+ },
1360
+ "additionalProperties": true
1361
+ }
1362
+ ]
1363
+ },
1364
+ "heading_with_no_marks_node": {
1365
+ "allOf": [
1366
+ {
1367
+ "$ref": "#/definitions/heading_node"
1368
+ },
1369
+ {
1370
+ "type": "object",
1371
+ "properties": {
1372
+ "marks": {
1373
+ "type": "array",
1374
+ "maxItems": 0
1375
+ }
1376
+ },
1377
+ "additionalProperties": true
1378
+ }
1379
+ ]
1380
+ },
1381
+ "indentation_mark": {
1382
+ "type": "object",
1383
+ "properties": {
1384
+ "type": {
1385
+ "enum": ["indentation"]
1386
+ },
1387
+ "attrs": {
1388
+ "type": "object",
1389
+ "properties": {
1390
+ "level": {
1391
+ "type": "number",
1392
+ "minimum": 1,
1393
+ "maximum": 6
1394
+ }
1395
+ },
1396
+ "required": ["level"],
1397
+ "additionalProperties": false
1398
+ }
1399
+ },
1400
+ "required": ["type", "attrs"],
1401
+ "additionalProperties": false
1402
+ },
1403
+ "inline_node": {
1404
+ "anyOf": [
1405
+ {
1406
+ "$ref": "#/definitions/formatted_text_inline_node"
1407
+ },
1408
+ {
1409
+ "$ref": "#/definitions/code_inline_node"
1410
+ },
1411
+ {
1412
+ "$ref": "#/definitions/date_node"
1413
+ },
1414
+ {
1415
+ "$ref": "#/definitions/emoji_node"
1416
+ },
1417
+ {
1418
+ "$ref": "#/definitions/hardBreak_node"
1419
+ },
1420
+ {
1421
+ "$ref": "#/definitions/inlineCard_node"
1422
+ },
1423
+ {
1424
+ "$ref": "#/definitions/mention_node"
1425
+ },
1426
+ {
1427
+ "$ref": "#/definitions/placeholder_node"
1428
+ },
1429
+ {
1430
+ "$ref": "#/definitions/status_node"
1431
+ },
1432
+ {
1433
+ "$ref": "#/definitions/inlineExtension_with_marks_node"
1434
+ },
1435
+ {
1436
+ "$ref": "#/definitions/mediaInline_node"
1437
+ }
1438
+ ]
1439
+ },
1440
+ "inlineCard_node": {
1441
+ "type": "object",
1442
+ "properties": {
1443
+ "type": {
1444
+ "enum": ["inlineCard"]
1445
+ },
1446
+ "attrs": {
1447
+ "anyOf": [
1448
+ {
1449
+ "type": "object",
1450
+ "properties": {
1451
+ "url": {
1452
+ "type": "string"
1453
+ },
1454
+ "localId": {
1455
+ "type": "string"
1456
+ }
1457
+ },
1458
+ "required": ["url"],
1459
+ "additionalProperties": false
1460
+ },
1461
+ {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "data": {},
1465
+ "localId": {
1466
+ "type": "string"
1467
+ }
1468
+ },
1469
+ "required": ["data"],
1470
+ "additionalProperties": false
1471
+ }
1472
+ ]
1473
+ }
1474
+ },
1475
+ "additionalProperties": false,
1476
+ "required": ["type", "attrs"]
1477
+ },
1478
+ "inlineExtension_node": {
1479
+ "type": "object",
1480
+ "properties": {
1481
+ "type": {
1482
+ "enum": ["inlineExtension"]
1483
+ },
1484
+ "marks": {
1485
+ "type": "array"
1486
+ },
1487
+ "attrs": {
1488
+ "type": "object",
1489
+ "properties": {
1490
+ "extensionKey": {
1491
+ "minLength": 1,
1492
+ "type": "string"
1493
+ },
1494
+ "extensionType": {
1495
+ "minLength": 1,
1496
+ "type": "string"
1497
+ },
1498
+ "parameters": {},
1499
+ "text": {
1500
+ "type": "string"
1501
+ },
1502
+ "localId": {
1503
+ "minLength": 1,
1504
+ "type": "string"
1505
+ }
1506
+ },
1507
+ "required": ["extensionKey", "extensionType"],
1508
+ "additionalProperties": false
1509
+ }
1510
+ },
1511
+ "additionalProperties": false,
1512
+ "required": ["type", "attrs"]
1513
+ },
1514
+ "inlineExtension_with_marks_node": {
1515
+ "allOf": [
1516
+ {
1517
+ "$ref": "#/definitions/inlineExtension_node"
1518
+ },
1519
+ {
1520
+ "type": "object",
1521
+ "properties": {
1522
+ "marks": {
1523
+ "type": "array",
1524
+ "items": {
1525
+ "anyOf": [
1526
+ {
1527
+ "$ref": "#/definitions/dataConsumer_mark"
1528
+ },
1529
+ {
1530
+ "$ref": "#/definitions/fragment_mark"
1531
+ }
1532
+ ]
1533
+ }
1534
+ }
1535
+ },
1536
+ "additionalProperties": true
1537
+ }
1538
+ ]
1539
+ },
1540
+ "layoutColumn_node": {
1541
+ "type": "object",
1542
+ "properties": {
1543
+ "type": {
1544
+ "enum": ["layoutColumn"]
1545
+ },
1546
+ "attrs": {
1547
+ "type": "object",
1548
+ "properties": {
1549
+ "width": {
1550
+ "type": "number",
1551
+ "minimum": 0,
1552
+ "maximum": 100
1553
+ },
1554
+ "localId": {
1555
+ "type": "string"
1556
+ }
1557
+ },
1558
+ "required": ["width"],
1559
+ "additionalProperties": false
1560
+ },
1561
+ "content": {
1562
+ "type": "array",
1563
+ "items": {
1564
+ "$ref": "#/definitions/block_content"
1565
+ },
1566
+ "minItems": 1
1567
+ }
1568
+ },
1569
+ "additionalProperties": false,
1570
+ "required": ["type", "attrs", "content"]
1571
+ },
1572
+ "layoutSection_full_node": {
1573
+ "allOf": [
1574
+ {
1575
+ "$ref": "#/definitions/layoutSection_node"
1576
+ },
1577
+ {
1578
+ "type": "object",
1579
+ "properties": {
1580
+ "marks": {
1581
+ "type": "array",
1582
+ "items": {
1583
+ "$ref": "#/definitions/breakout_mark"
1584
+ }
1585
+ },
1586
+ "content": {
1587
+ "type": "array",
1588
+ "items": {
1589
+ "$ref": "#/definitions/layoutColumn_node"
1590
+ },
1591
+ "minItems": 2,
1592
+ "maxItems": 3
1593
+ }
1594
+ },
1595
+ "required": ["content"],
1596
+ "additionalProperties": true
1597
+ }
1598
+ ]
1599
+ },
1600
+ "layoutSection_node": {
1601
+ "type": "object",
1602
+ "properties": {
1603
+ "type": {
1604
+ "enum": ["layoutSection"]
1605
+ },
1606
+ "marks": {
1607
+ "type": "array",
1608
+ "items": {
1609
+ "$ref": "#/definitions/breakout_mark"
1610
+ }
1611
+ },
1612
+ "attrs": {
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "localId": {
1616
+ "type": "string"
1617
+ }
1618
+ },
1619
+ "additionalProperties": false
1620
+ },
1621
+ "content": {
1622
+ "type": "array",
1623
+ "items": {
1624
+ "$ref": "#/definitions/layoutColumn_node"
1625
+ }
1626
+ }
1627
+ },
1628
+ "additionalProperties": false,
1629
+ "required": ["type", "content"]
1630
+ },
1631
+ "link_mark": {
1632
+ "type": "object",
1633
+ "properties": {
1634
+ "type": {
1635
+ "enum": ["link"]
1636
+ },
1637
+ "attrs": {
1638
+ "type": "object",
1639
+ "properties": {
1640
+ "href": {
1641
+ "type": "string"
1642
+ },
1643
+ "title": {
1644
+ "type": "string"
1645
+ },
1646
+ "id": {
1647
+ "type": "string"
1648
+ },
1649
+ "collection": {
1650
+ "type": "string"
1651
+ },
1652
+ "occurrenceKey": {
1653
+ "type": "string"
1654
+ }
1655
+ },
1656
+ "required": ["href"],
1657
+ "additionalProperties": false
1658
+ }
1659
+ },
1660
+ "required": ["type", "attrs"],
1661
+ "additionalProperties": false
1662
+ },
1663
+ "listItem_node": {
1664
+ "type": "object",
1665
+ "properties": {
1666
+ "type": {
1667
+ "enum": ["listItem"]
1668
+ },
1669
+ "attrs": {
1670
+ "type": "object",
1671
+ "properties": {
1672
+ "localId": {
1673
+ "type": "string"
1674
+ }
1675
+ },
1676
+ "additionalProperties": false
1677
+ },
1678
+ "content": {
1679
+ "type": "array",
1680
+ "items": [
1681
+ {
1682
+ "anyOf": [
1683
+ {
1684
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
1685
+ },
1686
+ {
1687
+ "$ref": "#/definitions/mediaSingle_caption_node"
1688
+ },
1689
+ {
1690
+ "$ref": "#/definitions/mediaSingle_full_node"
1691
+ },
1692
+ {
1693
+ "$ref": "#/definitions/codeBlock_node"
1694
+ },
1695
+ {
1696
+ "$ref": "#/definitions/extension_with_marks_node"
1697
+ }
1698
+ ]
1699
+ },
1700
+ {
1701
+ "anyOf": [
1702
+ {
1703
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
1704
+ },
1705
+ {
1706
+ "$ref": "#/definitions/bulletList_node"
1707
+ },
1708
+ {
1709
+ "$ref": "#/definitions/orderedList_node"
1710
+ },
1711
+ {
1712
+ "$ref": "#/definitions/taskList_node"
1713
+ },
1714
+ {
1715
+ "$ref": "#/definitions/mediaSingle_caption_node"
1716
+ },
1717
+ {
1718
+ "$ref": "#/definitions/mediaSingle_full_node"
1719
+ },
1720
+ {
1721
+ "$ref": "#/definitions/codeBlock_node"
1722
+ },
1723
+ {
1724
+ "$ref": "#/definitions/extension_with_marks_node"
1725
+ }
1726
+ ]
1727
+ }
1728
+ ],
1729
+ "minItems": 1
1730
+ }
1731
+ },
1732
+ "additionalProperties": false,
1733
+ "required": ["type", "content"]
1734
+ },
1735
+ "media_node": {
1736
+ "type": "object",
1737
+ "properties": {
1738
+ "type": {
1739
+ "enum": ["media"]
1740
+ },
1741
+ "marks": {
1742
+ "type": "array",
1743
+ "items": {
1744
+ "anyOf": [
1745
+ {
1746
+ "$ref": "#/definitions/link_mark"
1747
+ },
1748
+ {
1749
+ "$ref": "#/definitions/annotation_mark"
1750
+ },
1751
+ {
1752
+ "$ref": "#/definitions/border_mark"
1753
+ }
1754
+ ]
1755
+ }
1756
+ },
1757
+ "attrs": {
1758
+ "anyOf": [
1759
+ {
1760
+ "type": "object",
1761
+ "properties": {
1762
+ "type": {
1763
+ "enum": ["link", "file"]
1764
+ },
1765
+ "localId": {
1766
+ "type": "string"
1767
+ },
1768
+ "id": {
1769
+ "minLength": 1,
1770
+ "type": "string"
1771
+ },
1772
+ "alt": {
1773
+ "type": "string"
1774
+ },
1775
+ "collection": {
1776
+ "type": "string"
1777
+ },
1778
+ "height": {
1779
+ "type": "number"
1780
+ },
1781
+ "occurrenceKey": {
1782
+ "minLength": 1,
1783
+ "type": "string"
1784
+ },
1785
+ "width": {
1786
+ "type": "number"
1787
+ }
1788
+ },
1789
+ "required": ["type", "id", "collection"],
1790
+ "additionalProperties": false
1791
+ },
1792
+ {
1793
+ "type": "object",
1794
+ "properties": {
1795
+ "type": {
1796
+ "enum": ["external"]
1797
+ },
1798
+ "localId": {
1799
+ "type": "string"
1800
+ },
1801
+ "alt": {
1802
+ "type": "string"
1803
+ },
1804
+ "height": {
1805
+ "type": "number"
1806
+ },
1807
+ "width": {
1808
+ "type": "number"
1809
+ },
1810
+ "url": {
1811
+ "type": "string"
1812
+ }
1813
+ },
1814
+ "required": ["type", "url"],
1815
+ "additionalProperties": false
1816
+ }
1817
+ ]
1818
+ }
1819
+ },
1820
+ "additionalProperties": false,
1821
+ "required": ["type", "attrs"]
1822
+ },
1823
+ "mediaGroup_node": {
1824
+ "type": "object",
1825
+ "properties": {
1826
+ "type": {
1827
+ "enum": ["mediaGroup"]
1828
+ },
1829
+ "content": {
1830
+ "type": "array",
1831
+ "items": {
1832
+ "$ref": "#/definitions/media_node"
1833
+ },
1834
+ "minItems": 1
1835
+ }
1836
+ },
1837
+ "additionalProperties": false,
1838
+ "required": ["type", "content"]
1839
+ },
1840
+ "mediaInline_node": {
1841
+ "type": "object",
1842
+ "properties": {
1843
+ "type": {
1844
+ "enum": ["mediaInline"]
1845
+ },
1846
+ "marks": {
1847
+ "type": "array",
1848
+ "items": {
1849
+ "anyOf": [
1850
+ {
1851
+ "$ref": "#/definitions/link_mark"
1852
+ },
1853
+ {
1854
+ "$ref": "#/definitions/annotation_mark"
1855
+ },
1856
+ {
1857
+ "$ref": "#/definitions/border_mark"
1858
+ }
1859
+ ]
1860
+ }
1861
+ },
1862
+ "attrs": {
1863
+ "type": "object",
1864
+ "properties": {
1865
+ "type": {
1866
+ "enum": ["link", "file", "image"]
1867
+ },
1868
+ "localId": {
1869
+ "type": "string"
1870
+ },
1871
+ "id": {
1872
+ "minLength": 1,
1873
+ "type": "string"
1874
+ },
1875
+ "alt": {
1876
+ "type": "string"
1877
+ },
1878
+ "collection": {
1879
+ "type": "string"
1880
+ },
1881
+ "occurrenceKey": {
1882
+ "minLength": 1,
1883
+ "type": "string"
1884
+ },
1885
+ "width": {
1886
+ "type": "number"
1887
+ },
1888
+ "height": {
1889
+ "type": "number"
1890
+ },
1891
+ "data": {}
1892
+ },
1893
+ "required": ["id", "collection"],
1894
+ "additionalProperties": false
1895
+ }
1896
+ },
1897
+ "additionalProperties": false,
1898
+ "required": ["type", "attrs"]
1899
+ },
1900
+ "mediaSingle_caption_node": {
1901
+ "allOf": [
1902
+ {
1903
+ "$ref": "#/definitions/mediaSingle_node"
1904
+ },
1905
+ {
1906
+ "type": "object",
1907
+ "properties": {
1908
+ "content": {
1909
+ "type": "array",
1910
+ "items": [
1911
+ {
1912
+ "$ref": "#/definitions/media_node"
1913
+ },
1914
+ {
1915
+ "$ref": "#/definitions/caption_node"
1916
+ }
1917
+ ],
1918
+ "minItems": 1,
1919
+ "maxItems": 2
1920
+ }
1921
+ },
1922
+ "required": ["content"],
1923
+ "additionalProperties": true
1924
+ }
1925
+ ]
1926
+ },
1927
+ "mediaSingle_full_node": {
1928
+ "allOf": [
1929
+ {
1930
+ "$ref": "#/definitions/mediaSingle_node"
1931
+ },
1932
+ {
1933
+ "type": "object",
1934
+ "properties": {
1935
+ "content": {
1936
+ "type": "array",
1937
+ "items": {
1938
+ "$ref": "#/definitions/media_node"
1939
+ },
1940
+ "minItems": 1,
1941
+ "maxItems": 1
1942
+ }
1943
+ },
1944
+ "required": ["content"],
1945
+ "additionalProperties": true
1946
+ }
1947
+ ]
1948
+ },
1949
+ "mediaSingle_node": {
1950
+ "type": "object",
1951
+ "properties": {
1952
+ "type": {
1953
+ "enum": ["mediaSingle"]
1954
+ },
1955
+ "marks": {
1956
+ "type": "array",
1957
+ "items": {
1958
+ "$ref": "#/definitions/link_mark"
1959
+ }
1960
+ },
1961
+ "attrs": {
1962
+ "anyOf": [
1963
+ {
1964
+ "type": "object",
1965
+ "properties": {
1966
+ "localId": {
1967
+ "type": "string"
1968
+ },
1969
+ "width": {
1970
+ "type": "number",
1971
+ "minimum": 0,
1972
+ "maximum": 100
1973
+ },
1974
+ "layout": {
1975
+ "enum": [
1976
+ "wide",
1977
+ "full-width",
1978
+ "center",
1979
+ "wrap-right",
1980
+ "wrap-left",
1981
+ "align-end",
1982
+ "align-start"
1983
+ ]
1984
+ },
1985
+ "widthType": {
1986
+ "enum": ["percentage"]
1987
+ }
1988
+ },
1989
+ "required": ["layout"],
1990
+ "additionalProperties": false
1991
+ },
1992
+ {
1993
+ "type": "object",
1994
+ "properties": {
1995
+ "localId": {
1996
+ "type": "string"
1997
+ },
1998
+ "width": {
1999
+ "type": "number",
2000
+ "minimum": 0
2001
+ },
2002
+ "widthType": {
2003
+ "enum": ["pixel"]
2004
+ },
2005
+ "layout": {
2006
+ "enum": [
2007
+ "wide",
2008
+ "full-width",
2009
+ "center",
2010
+ "wrap-right",
2011
+ "wrap-left",
2012
+ "align-end",
2013
+ "align-start"
2014
+ ]
2015
+ }
2016
+ },
2017
+ "required": ["width", "widthType", "layout"],
2018
+ "additionalProperties": false
2019
+ }
2020
+ ]
2021
+ }
2022
+ },
2023
+ "additionalProperties": true,
2024
+ "required": ["type"]
2025
+ },
2026
+ "mention_node": {
2027
+ "type": "object",
2028
+ "properties": {
2029
+ "type": {
2030
+ "enum": ["mention"]
2031
+ },
2032
+ "attrs": {
2033
+ "type": "object",
2034
+ "properties": {
2035
+ "id": {
2036
+ "type": "string"
2037
+ },
2038
+ "localId": {
2039
+ "type": "string"
2040
+ },
2041
+ "text": {
2042
+ "type": "string"
2043
+ },
2044
+ "accessLevel": {
2045
+ "type": "string"
2046
+ },
2047
+ "userType": {
2048
+ "enum": ["DEFAULT", "SPECIAL", "APP"]
2049
+ }
2050
+ },
2051
+ "required": ["id"],
2052
+ "additionalProperties": false
2053
+ }
2054
+ },
2055
+ "additionalProperties": false,
2056
+ "required": ["type", "attrs"]
2057
+ },
2058
+ "nestedExpand_content": {
2059
+ "type": "array",
2060
+ "items": {
2061
+ "anyOf": [
2062
+ {
2063
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2064
+ },
2065
+ {
2066
+ "$ref": "#/definitions/heading_with_no_marks_node"
2067
+ },
2068
+ {
2069
+ "$ref": "#/definitions/mediaSingle_caption_node"
2070
+ },
2071
+ {
2072
+ "$ref": "#/definitions/mediaSingle_full_node"
2073
+ },
2074
+ {
2075
+ "$ref": "#/definitions/mediaGroup_node"
2076
+ },
2077
+ {
2078
+ "$ref": "#/definitions/codeBlock_node"
2079
+ },
2080
+ {
2081
+ "$ref": "#/definitions/bulletList_node"
2082
+ },
2083
+ {
2084
+ "$ref": "#/definitions/orderedList_node"
2085
+ },
2086
+ {
2087
+ "$ref": "#/definitions/taskList_node"
2088
+ },
2089
+ {
2090
+ "$ref": "#/definitions/decisionList_node"
2091
+ },
2092
+ {
2093
+ "$ref": "#/definitions/rule_node"
2094
+ },
2095
+ {
2096
+ "$ref": "#/definitions/panel_node"
2097
+ },
2098
+ {
2099
+ "$ref": "#/definitions/blockquote_node"
2100
+ },
2101
+ {
2102
+ "$ref": "#/definitions/extension_with_marks_node"
2103
+ }
2104
+ ]
2105
+ },
2106
+ "minItems": 1
2107
+ },
2108
+ "nestedExpand_node": {
2109
+ "type": "object",
2110
+ "properties": {
2111
+ "type": {
2112
+ "enum": ["nestedExpand"]
2113
+ },
2114
+ "attrs": {
2115
+ "type": "object",
2116
+ "properties": {
2117
+ "title": {
2118
+ "type": "string"
2119
+ },
2120
+ "localId": {
2121
+ "type": "string"
2122
+ }
2123
+ },
2124
+ "additionalProperties": false
2125
+ },
2126
+ "content": {
2127
+ "$ref": "#/definitions/nestedExpand_content"
2128
+ }
2129
+ },
2130
+ "additionalProperties": false,
2131
+ "required": ["type", "content", "attrs"]
2132
+ },
2133
+ "nestedExpand_with_no_marks_node": {
2134
+ "allOf": [
2135
+ {
2136
+ "$ref": "#/definitions/nestedExpand_node"
2137
+ },
2138
+ {
2139
+ "type": "object",
2140
+ "properties": {
2141
+ "marks": {
2142
+ "type": "array",
2143
+ "maxItems": 0
2144
+ }
2145
+ },
2146
+ "additionalProperties": true
2147
+ }
2148
+ ]
2149
+ },
2150
+ "non_nestable_block_content": {
2151
+ "anyOf": [
2152
+ {
2153
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2154
+ },
2155
+ {
2156
+ "$ref": "#/definitions/panel_node"
2157
+ },
2158
+ {
2159
+ "$ref": "#/definitions/blockquote_node"
2160
+ },
2161
+ {
2162
+ "$ref": "#/definitions/orderedList_node"
2163
+ },
2164
+ {
2165
+ "$ref": "#/definitions/bulletList_node"
2166
+ },
2167
+ {
2168
+ "$ref": "#/definitions/rule_node"
2169
+ },
2170
+ {
2171
+ "$ref": "#/definitions/heading_with_no_marks_node"
2172
+ },
2173
+ {
2174
+ "$ref": "#/definitions/codeBlock_node"
2175
+ },
2176
+ {
2177
+ "$ref": "#/definitions/mediaGroup_node"
2178
+ },
2179
+ {
2180
+ "$ref": "#/definitions/mediaSingle_caption_node"
2181
+ },
2182
+ {
2183
+ "$ref": "#/definitions/mediaSingle_full_node"
2184
+ },
2185
+ {
2186
+ "$ref": "#/definitions/decisionList_node"
2187
+ },
2188
+ {
2189
+ "$ref": "#/definitions/taskList_node"
2190
+ },
2191
+ {
2192
+ "$ref": "#/definitions/table_node"
2193
+ },
2194
+ {
2195
+ "$ref": "#/definitions/blockCard_node"
2196
+ },
2197
+ {
2198
+ "$ref": "#/definitions/embedCard_node"
2199
+ },
2200
+ {
2201
+ "$ref": "#/definitions/extension_with_marks_node"
2202
+ }
2203
+ ]
2204
+ },
2205
+ "orderedList_node": {
2206
+ "type": "object",
2207
+ "properties": {
2208
+ "type": {
2209
+ "enum": ["orderedList"]
2210
+ },
2211
+ "attrs": {
2212
+ "type": "object",
2213
+ "properties": {
2214
+ "order": {
2215
+ "type": "number",
2216
+ "minimum": 0
2217
+ },
2218
+ "localId": {
2219
+ "type": "string"
2220
+ }
2221
+ },
2222
+ "additionalProperties": false
2223
+ },
2224
+ "content": {
2225
+ "type": "array",
2226
+ "items": {
2227
+ "$ref": "#/definitions/listItem_node"
2228
+ },
2229
+ "minItems": 1
2230
+ }
2231
+ },
2232
+ "additionalProperties": false,
2233
+ "required": ["type", "content"]
2234
+ },
2235
+ "panel_node": {
2236
+ "type": "object",
2237
+ "properties": {
2238
+ "type": {
2239
+ "enum": ["panel"]
2240
+ },
2241
+ "attrs": {
2242
+ "type": "object",
2243
+ "properties": {
2244
+ "panelType": {
2245
+ "enum": [
2246
+ "info",
2247
+ "note",
2248
+ "tip",
2249
+ "warning",
2250
+ "error",
2251
+ "success",
2252
+ "custom"
2253
+ ]
2254
+ },
2255
+ "panelIcon": {
2256
+ "type": "string"
2257
+ },
2258
+ "panelIconId": {
2259
+ "type": "string"
2260
+ },
2261
+ "panelIconText": {
2262
+ "type": "string"
2263
+ },
2264
+ "panelColor": {
2265
+ "type": "string"
2266
+ },
2267
+ "localId": {
2268
+ "type": "string"
2269
+ }
2270
+ },
2271
+ "required": ["panelType"],
2272
+ "additionalProperties": false
2273
+ },
2274
+ "content": {
2275
+ "type": "array",
2276
+ "items": {
2277
+ "anyOf": [
2278
+ {
2279
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2280
+ },
2281
+ {
2282
+ "$ref": "#/definitions/heading_with_no_marks_node"
2283
+ },
2284
+ {
2285
+ "$ref": "#/definitions/bulletList_node"
2286
+ },
2287
+ {
2288
+ "$ref": "#/definitions/orderedList_node"
2289
+ },
2290
+ {
2291
+ "$ref": "#/definitions/blockCard_node"
2292
+ },
2293
+ {
2294
+ "$ref": "#/definitions/mediaGroup_node"
2295
+ },
2296
+ {
2297
+ "$ref": "#/definitions/mediaSingle_caption_node"
2298
+ },
2299
+ {
2300
+ "$ref": "#/definitions/mediaSingle_full_node"
2301
+ },
2302
+ {
2303
+ "$ref": "#/definitions/codeBlock_node"
2304
+ },
2305
+ {
2306
+ "$ref": "#/definitions/taskList_node"
2307
+ },
2308
+ {
2309
+ "$ref": "#/definitions/rule_node"
2310
+ },
2311
+ {
2312
+ "$ref": "#/definitions/decisionList_node"
2313
+ },
2314
+ {
2315
+ "$ref": "#/definitions/extension_with_marks_node"
2316
+ }
2317
+ ]
2318
+ },
2319
+ "minItems": 1
2320
+ }
2321
+ },
2322
+ "additionalProperties": false,
2323
+ "required": ["type", "attrs", "content"]
2324
+ },
2325
+ "paragraph_node": {
2326
+ "type": "object",
2327
+ "properties": {
2328
+ "type": {
2329
+ "enum": ["paragraph"]
2330
+ },
2331
+ "marks": {
2332
+ "type": "array"
2333
+ },
2334
+ "attrs": {
2335
+ "type": "object",
2336
+ "properties": {
2337
+ "localId": {
2338
+ "type": "string"
2339
+ }
2340
+ },
2341
+ "additionalProperties": false
2342
+ },
2343
+ "content": {
2344
+ "type": "array",
2345
+ "items": {
2346
+ "$ref": "#/definitions/inline_node"
2347
+ }
2348
+ }
2349
+ },
2350
+ "additionalProperties": false,
2351
+ "required": ["type"]
2352
+ },
2353
+ "paragraph_with_alignment_node": {
2354
+ "allOf": [
2355
+ {
2356
+ "$ref": "#/definitions/paragraph_node"
2357
+ },
2358
+ {
2359
+ "type": "object",
2360
+ "properties": {
2361
+ "marks": {
2362
+ "type": "array",
2363
+ "items": {
2364
+ "$ref": "#/definitions/alignment_mark"
2365
+ }
2366
+ }
2367
+ },
2368
+ "additionalProperties": true
2369
+ }
2370
+ ]
2371
+ },
2372
+ "paragraph_with_indentation_node": {
2373
+ "allOf": [
2374
+ {
2375
+ "$ref": "#/definitions/paragraph_node"
2376
+ },
2377
+ {
2378
+ "type": "object",
2379
+ "properties": {
2380
+ "marks": {
2381
+ "type": "array",
2382
+ "items": {
2383
+ "$ref": "#/definitions/indentation_mark"
2384
+ }
2385
+ }
2386
+ },
2387
+ "additionalProperties": true
2388
+ }
2389
+ ]
2390
+ },
2391
+ "paragraph_with_no_marks_node": {
2392
+ "allOf": [
2393
+ {
2394
+ "$ref": "#/definitions/paragraph_node"
2395
+ },
2396
+ {
2397
+ "type": "object",
2398
+ "properties": {
2399
+ "marks": {
2400
+ "type": "array",
2401
+ "maxItems": 0
2402
+ }
2403
+ },
2404
+ "additionalProperties": true
2405
+ }
2406
+ ]
2407
+ },
2408
+ "placeholder_node": {
2409
+ "type": "object",
2410
+ "properties": {
2411
+ "type": {
2412
+ "enum": ["placeholder"]
2413
+ },
2414
+ "attrs": {
2415
+ "type": "object",
2416
+ "properties": {
2417
+ "text": {
2418
+ "type": "string"
2419
+ },
2420
+ "localId": {
2421
+ "type": "string"
2422
+ }
2423
+ },
2424
+ "required": ["text"],
2425
+ "additionalProperties": false
2426
+ }
2427
+ },
2428
+ "additionalProperties": false,
2429
+ "required": ["type", "attrs"]
2430
+ },
2431
+ "rule_node": {
2432
+ "type": "object",
2433
+ "properties": {
2434
+ "type": {
2435
+ "enum": ["rule"]
2436
+ },
2437
+ "attrs": {
2438
+ "type": "object",
2439
+ "properties": {
2440
+ "localId": {
2441
+ "type": "string"
2442
+ }
2443
+ },
2444
+ "additionalProperties": false
2445
+ }
2446
+ },
2447
+ "additionalProperties": false,
2448
+ "required": ["type"]
2449
+ },
2450
+ "status_node": {
2451
+ "type": "object",
2452
+ "properties": {
2453
+ "type": {
2454
+ "enum": ["status"]
2455
+ },
2456
+ "attrs": {
2457
+ "type": "object",
2458
+ "properties": {
2459
+ "text": {
2460
+ "minLength": 1,
2461
+ "type": "string"
2462
+ },
2463
+ "color": {
2464
+ "enum": ["neutral", "purple", "blue", "red", "yellow", "green"]
2465
+ },
2466
+ "localId": {
2467
+ "type": "string"
2468
+ },
2469
+ "style": {
2470
+ "type": "string"
2471
+ }
2472
+ },
2473
+ "required": ["text", "color"],
2474
+ "additionalProperties": false
2475
+ }
2476
+ },
2477
+ "additionalProperties": false,
2478
+ "required": ["type", "attrs"]
2479
+ },
2480
+ "strike_mark": {
2481
+ "type": "object",
2482
+ "properties": {
2483
+ "type": {
2484
+ "enum": ["strike"]
2485
+ }
2486
+ },
2487
+ "required": ["type"],
2488
+ "additionalProperties": false
2489
+ },
2490
+ "strong_mark": {
2491
+ "type": "object",
2492
+ "properties": {
2493
+ "type": {
2494
+ "enum": ["strong"]
2495
+ }
2496
+ },
2497
+ "required": ["type"],
2498
+ "additionalProperties": false
2499
+ },
2500
+ "subsup_mark": {
2501
+ "type": "object",
2502
+ "properties": {
2503
+ "type": {
2504
+ "enum": ["subsup"]
2505
+ },
2506
+ "attrs": {
2507
+ "type": "object",
2508
+ "properties": {
2509
+ "type": {
2510
+ "enum": ["sub", "sup"]
2511
+ }
2512
+ },
2513
+ "required": ["type"],
2514
+ "additionalProperties": false
2515
+ }
2516
+ },
2517
+ "required": ["type", "attrs"],
2518
+ "additionalProperties": false
2519
+ },
2520
+ "syncBlock_node": {
2521
+ "type": "object",
2522
+ "properties": {
2523
+ "type": {
2524
+ "enum": ["syncBlock"]
2525
+ },
2526
+ "marks": {
2527
+ "type": "array",
2528
+ "items": {
2529
+ "$ref": "#/definitions/breakout_mark"
2530
+ }
2531
+ },
2532
+ "attrs": {
2533
+ "type": "object",
2534
+ "properties": {
2535
+ "resourceId": {
2536
+ "type": "string"
2537
+ },
2538
+ "localId": {
2539
+ "type": "string"
2540
+ }
2541
+ },
2542
+ "required": ["resourceId", "localId"],
2543
+ "additionalProperties": false
2544
+ }
2545
+ },
2546
+ "additionalProperties": false,
2547
+ "required": ["type", "attrs"]
2548
+ },
2549
+ "table_cell_content": {
2550
+ "type": "array",
2551
+ "items": {
2552
+ "anyOf": [
2553
+ {
2554
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2555
+ },
2556
+ {
2557
+ "$ref": "#/definitions/paragraph_with_alignment_node"
2558
+ },
2559
+ {
2560
+ "$ref": "#/definitions/panel_node"
2561
+ },
2562
+ {
2563
+ "$ref": "#/definitions/blockquote_node"
2564
+ },
2565
+ {
2566
+ "$ref": "#/definitions/orderedList_node"
2567
+ },
2568
+ {
2569
+ "$ref": "#/definitions/bulletList_node"
2570
+ },
2571
+ {
2572
+ "$ref": "#/definitions/rule_node"
2573
+ },
2574
+ {
2575
+ "$ref": "#/definitions/heading_with_no_marks_node"
2576
+ },
2577
+ {
2578
+ "$ref": "#/definitions/heading_with_alignment_node"
2579
+ },
2580
+ {
2581
+ "$ref": "#/definitions/heading_with_indentation_node"
2582
+ },
2583
+ {
2584
+ "$ref": "#/definitions/codeBlock_node"
2585
+ },
2586
+ {
2587
+ "$ref": "#/definitions/mediaSingle_caption_node"
2588
+ },
2589
+ {
2590
+ "$ref": "#/definitions/mediaSingle_full_node"
2591
+ },
2592
+ {
2593
+ "$ref": "#/definitions/mediaGroup_node"
2594
+ },
2595
+ {
2596
+ "$ref": "#/definitions/decisionList_node"
2597
+ },
2598
+ {
2599
+ "$ref": "#/definitions/taskList_node"
2600
+ },
2601
+ {
2602
+ "$ref": "#/definitions/blockCard_node"
2603
+ },
2604
+ {
2605
+ "$ref": "#/definitions/embedCard_node"
2606
+ },
2607
+ {
2608
+ "$ref": "#/definitions/extension_with_marks_node"
2609
+ },
2610
+ {
2611
+ "$ref": "#/definitions/nestedExpand_with_no_marks_node"
2612
+ }
2613
+ ]
2614
+ },
2615
+ "minItems": 1
2616
+ },
2617
+ "table_cell_node": {
2618
+ "type": "object",
2619
+ "properties": {
2620
+ "type": {
2621
+ "enum": ["tableCell"]
2622
+ },
2623
+ "attrs": {
2624
+ "type": "object",
2625
+ "properties": {
2626
+ "colspan": {
2627
+ "type": "number"
2628
+ },
2629
+ "rowspan": {
2630
+ "type": "number"
2631
+ },
2632
+ "colwidth": {
2633
+ "type": "array",
2634
+ "items": {
2635
+ "type": "number"
2636
+ }
2637
+ },
2638
+ "background": {
2639
+ "type": "string"
2640
+ },
2641
+ "localId": {
2642
+ "type": "string"
2643
+ }
2644
+ },
2645
+ "additionalProperties": false
2646
+ },
2647
+ "content": {
2648
+ "$ref": "#/definitions/table_cell_content"
2649
+ }
2650
+ },
2651
+ "additionalProperties": false,
2652
+ "required": ["type", "content"]
2653
+ },
2654
+ "table_header_node": {
2655
+ "type": "object",
2656
+ "properties": {
2657
+ "type": {
2658
+ "enum": ["tableHeader"]
2659
+ },
2660
+ "attrs": {
2661
+ "type": "object",
2662
+ "properties": {
2663
+ "colspan": {
2664
+ "type": "number"
2665
+ },
2666
+ "rowspan": {
2667
+ "type": "number"
2668
+ },
2669
+ "colwidth": {
2670
+ "type": "array",
2671
+ "items": {
2672
+ "type": "number"
2673
+ }
2674
+ },
2675
+ "background": {
2676
+ "type": "string"
2677
+ },
2678
+ "localId": {
2679
+ "type": "string"
2680
+ }
2681
+ },
2682
+ "additionalProperties": false
2683
+ },
2684
+ "content": {
2685
+ "$ref": "#/definitions/table_cell_content"
2686
+ }
2687
+ },
2688
+ "additionalProperties": false,
2689
+ "required": ["type", "content"]
2690
+ },
2691
+ "table_node": {
2692
+ "type": "object",
2693
+ "properties": {
2694
+ "type": {
2695
+ "enum": ["table"]
2696
+ },
2697
+ "marks": {
2698
+ "type": "array",
2699
+ "items": {
2700
+ "$ref": "#/definitions/fragment_mark"
2701
+ }
2702
+ },
2703
+ "attrs": {
2704
+ "type": "object",
2705
+ "properties": {
2706
+ "displayMode": {
2707
+ "enum": ["default", "fixed"]
2708
+ },
2709
+ "isNumberColumnEnabled": {
2710
+ "type": "boolean"
2711
+ },
2712
+ "layout": {
2713
+ "enum": [
2714
+ "wide",
2715
+ "full-width",
2716
+ "center",
2717
+ "align-end",
2718
+ "align-start",
2719
+ "default"
2720
+ ]
2721
+ },
2722
+ "localId": {
2723
+ "type": "string",
2724
+ "minLength": 1
2725
+ },
2726
+ "width": {
2727
+ "type": "number"
2728
+ }
2729
+ },
2730
+ "additionalProperties": false
2731
+ },
2732
+ "content": {
2733
+ "type": "array",
2734
+ "items": {
2735
+ "$ref": "#/definitions/table_row_node"
2736
+ },
2737
+ "minItems": 1
2738
+ }
2739
+ },
2740
+ "additionalProperties": false,
2741
+ "required": ["type", "content"]
2742
+ },
2743
+ "table_row_node": {
2744
+ "type": "object",
2745
+ "properties": {
2746
+ "type": {
2747
+ "enum": ["tableRow"]
2748
+ },
2749
+ "attrs": {
2750
+ "type": "object",
2751
+ "properties": {
2752
+ "localId": {
2753
+ "type": "string"
2754
+ }
2755
+ },
2756
+ "additionalProperties": false
2757
+ },
2758
+ "content": {
2759
+ "type": "array",
2760
+ "items": {
2761
+ "anyOf": [
2762
+ {
2763
+ "$ref": "#/definitions/table_cell_node"
2764
+ },
2765
+ {
2766
+ "$ref": "#/definitions/table_header_node"
2767
+ }
2768
+ ]
2769
+ }
2770
+ }
2771
+ },
2772
+ "additionalProperties": false,
2773
+ "required": ["type", "content"]
2774
+ },
2775
+ "taskItem_node": {
2776
+ "type": "object",
2777
+ "properties": {
2778
+ "type": {
2779
+ "enum": ["taskItem"]
2780
+ },
2781
+ "attrs": {
2782
+ "type": "object",
2783
+ "properties": {
2784
+ "localId": {
2785
+ "type": "string"
2786
+ },
2787
+ "state": {
2788
+ "enum": ["TODO", "DONE"]
2789
+ }
2790
+ },
2791
+ "required": ["localId", "state"],
2792
+ "additionalProperties": false
2793
+ },
2794
+ "content": {
2795
+ "type": "array",
2796
+ "items": {
2797
+ "$ref": "#/definitions/inline_node"
2798
+ }
2799
+ }
2800
+ },
2801
+ "additionalProperties": false,
2802
+ "required": ["type", "attrs"]
2803
+ },
2804
+ "taskList_node": {
2805
+ "type": "object",
2806
+ "properties": {
2807
+ "type": {
2808
+ "enum": ["taskList"]
2809
+ },
2810
+ "attrs": {
2811
+ "type": "object",
2812
+ "properties": {
2813
+ "localId": {
2814
+ "type": "string"
2815
+ }
2816
+ },
2817
+ "required": ["localId"],
2818
+ "additionalProperties": false
2819
+ },
2820
+ "content": {
2821
+ "type": "array",
2822
+ "items": [
2823
+ {
2824
+ "anyOf": [
2825
+ {
2826
+ "$ref": "#/definitions/taskItem_node"
2827
+ },
2828
+ {
2829
+ "$ref": "#/definitions/blockTaskItem_node"
2830
+ }
2831
+ ]
2832
+ },
2833
+ {
2834
+ "anyOf": [
2835
+ {
2836
+ "$ref": "#/definitions/taskItem_node"
2837
+ },
2838
+ {
2839
+ "$ref": "#/definitions/taskList_node"
2840
+ },
2841
+ {
2842
+ "$ref": "#/definitions/blockTaskItem_node"
2843
+ }
2844
+ ]
2845
+ }
2846
+ ],
2847
+ "minItems": 1
2848
+ }
2849
+ },
2850
+ "additionalProperties": false,
2851
+ "required": ["type", "attrs", "content"]
2852
+ },
2853
+ "text_node": {
2854
+ "type": "object",
2855
+ "properties": {
2856
+ "type": {
2857
+ "enum": ["text"]
2858
+ },
2859
+ "marks": {
2860
+ "type": "array"
2861
+ },
2862
+ "text": {
2863
+ "minLength": 1,
2864
+ "type": "string"
2865
+ }
2866
+ },
2867
+ "additionalProperties": false,
2868
+ "required": ["type", "text"]
2869
+ },
2870
+ "text_with_no_marks_node": {
2871
+ "allOf": [
2872
+ {
2873
+ "$ref": "#/definitions/text_node"
2874
+ },
2875
+ {
2876
+ "type": "object",
2877
+ "properties": {
2878
+ "marks": {
2879
+ "type": "array",
2880
+ "maxItems": 0
2881
+ }
2882
+ },
2883
+ "additionalProperties": true
2884
+ }
2885
+ ]
2886
+ },
2887
+ "textColor_mark": {
2888
+ "type": "object",
2889
+ "properties": {
2890
+ "type": {
2891
+ "enum": ["textColor"]
2892
+ },
2893
+ "attrs": {
2894
+ "type": "object",
2895
+ "properties": {
2896
+ "color": {
2897
+ "type": "string",
2898
+ "pattern": "^#[0-9a-fA-F]{6}$"
2899
+ }
2900
+ },
2901
+ "required": ["color"],
2902
+ "additionalProperties": false
2903
+ }
2904
+ },
2905
+ "required": ["type", "attrs"],
2906
+ "additionalProperties": false
2907
+ },
2908
+ "underline_mark": {
2909
+ "type": "object",
2910
+ "properties": {
2911
+ "type": {
2912
+ "enum": ["underline"]
2913
+ }
2914
+ },
2915
+ "required": ["type"],
2916
+ "additionalProperties": false
2917
+ }
2918
+ }
2919
+ }