UNPKG

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