@atlaskit/adf-schema 37.2.1 → 39.0.0

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