@agentshouse/mdmodel 0.1.0-cb304fd2c27f9 → 0.1.0-cbb41ab5ebbd2

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 (379) hide show
  1. package/API.md +203 -173
  2. package/README.md +26 -25
  3. package/dist/body.d.ts +85 -0
  4. package/dist/body.d.ts.map +1 -0
  5. package/dist/body.js +1083 -0
  6. package/dist/built-in.d.ts +4 -0
  7. package/dist/built-in.d.ts.map +1 -0
  8. package/dist/built-in.js +19 -0
  9. package/dist/definition.d.ts +24 -11
  10. package/dist/definition.d.ts.map +1 -1
  11. package/dist/definition.js +188 -128
  12. package/dist/divide.d.ts.map +1 -1
  13. package/dist/divide.js +5 -4
  14. package/dist/document.d.ts +14 -9
  15. package/dist/document.d.ts.map +1 -1
  16. package/dist/document.js +759 -148
  17. package/dist/event.d.ts +77 -0
  18. package/dist/event.d.ts.map +1 -0
  19. package/dist/event.js +200 -0
  20. package/dist/facts.d.ts +15 -0
  21. package/dist/facts.d.ts.map +1 -0
  22. package/dist/facts.js +41 -0
  23. package/dist/fields.d.ts +1 -1
  24. package/dist/fields.d.ts.map +1 -1
  25. package/dist/fields.js +2 -2
  26. package/dist/form.d.ts +4 -0
  27. package/dist/form.d.ts.map +1 -0
  28. package/dist/form.js +153 -0
  29. package/dist/house-model.d.ts +870 -0
  30. package/dist/house-model.d.ts.map +1 -0
  31. package/dist/house-model.js +472 -0
  32. package/dist/house-references/crockford.d.ts +4 -0
  33. package/dist/house-references/crockford.d.ts.map +1 -0
  34. package/dist/house-references/crockford.js +3 -0
  35. package/dist/house-references/patterns.d.ts +9 -0
  36. package/dist/house-references/patterns.d.ts.map +1 -0
  37. package/dist/house-references/patterns.js +13 -0
  38. package/dist/index.d.ts +39 -20
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +25 -13
  41. package/dist/indexed.d.ts +9 -0
  42. package/dist/indexed.d.ts.map +1 -0
  43. package/dist/indexed.js +55 -0
  44. package/dist/kinds.d.ts +5 -2
  45. package/dist/kinds.d.ts.map +1 -1
  46. package/dist/kinds.js +80 -11
  47. package/dist/markdown.d.ts +75 -0
  48. package/dist/markdown.d.ts.map +1 -0
  49. package/dist/markdown.js +265 -0
  50. package/dist/media-type.d.ts +72 -0
  51. package/dist/media-type.d.ts.map +1 -0
  52. package/dist/media-type.js +157 -0
  53. package/dist/moment.d.ts +7 -0
  54. package/dist/moment.d.ts.map +1 -0
  55. package/dist/moment.js +18 -0
  56. package/dist/not-ready.d.ts +2 -0
  57. package/dist/not-ready.d.ts.map +1 -0
  58. package/dist/not-ready.js +5 -0
  59. package/dist/paths.d.ts +15 -1
  60. package/dist/paths.d.ts.map +1 -1
  61. package/dist/paths.js +88 -19
  62. package/dist/pattern.d.ts.map +1 -1
  63. package/dist/pattern.js +4 -3
  64. package/dist/project.d.ts.map +1 -1
  65. package/dist/project.js +33 -60
  66. package/dist/query/language.d.ts +45 -8
  67. package/dist/query/language.d.ts.map +1 -1
  68. package/dist/query/language.js +152 -58
  69. package/dist/query/match.d.ts +3 -1
  70. package/dist/query/match.d.ts.map +1 -1
  71. package/dist/query/match.js +40 -8
  72. package/dist/query/rows.d.ts +1 -1
  73. package/dist/query/rows.d.ts.map +1 -1
  74. package/dist/query/rows.js +2 -5
  75. package/dist/query/sql.d.ts +5 -1
  76. package/dist/query/sql.d.ts.map +1 -1
  77. package/dist/query/sql.js +10 -4
  78. package/dist/query/walk.d.ts +63 -0
  79. package/dist/query/walk.d.ts.map +1 -0
  80. package/dist/query/walk.js +263 -0
  81. package/dist/references.d.ts +2 -2
  82. package/dist/references.d.ts.map +1 -1
  83. package/dist/references.js +1 -1
  84. package/dist/refuse.d.ts +1 -0
  85. package/dist/refuse.d.ts.map +1 -1
  86. package/dist/refuse.js +1 -0
  87. package/dist/reserved.d.ts +1 -0
  88. package/dist/reserved.d.ts.map +1 -1
  89. package/dist/reserved.js +2 -1
  90. package/dist/room-types.d.ts +7 -0
  91. package/dist/room-types.d.ts.map +1 -0
  92. package/dist/room-types.js +136 -0
  93. package/dist/schema.d.ts +1 -3
  94. package/dist/schema.d.ts.map +1 -1
  95. package/dist/schema.js +9 -73
  96. package/dist/types.d.ts +15 -22
  97. package/dist/types.d.ts.map +1 -1
  98. package/dist/validate.d.ts +10 -5
  99. package/dist/validate.d.ts.map +1 -1
  100. package/dist/validate.js +150 -184
  101. package/dist/yaml.d.ts +4 -4
  102. package/dist/yaml.d.ts.map +1 -1
  103. package/dist/yaml.js +5 -12
  104. package/fixtures/README.md +49 -24
  105. package/fixtures/cases/absent-link-dangles/library/item.md +1 -1
  106. package/fixtures/cases/absent-link-dangles/schema.yaml +2 -3
  107. package/fixtures/cases/absent-optional-field/library/companies/acme.md +1 -1
  108. package/fixtures/cases/absent-optional-field/library/deals/lead.md +3 -3
  109. package/fixtures/cases/absent-optional-field/schema.yaml +10 -11
  110. package/fixtures/cases/absolute-link/library/item.md +1 -1
  111. package/fixtures/cases/absolute-link/schema.yaml +2 -3
  112. package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +1 -1
  113. package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +13 -10
  114. package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +1 -1
  115. package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +1 -1
  116. package/fixtures/cases/attachment-reference-any-file/library/products/support.md +1 -1
  117. package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +1 -1
  118. package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +13 -10
  119. package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +1 -1
  120. package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +1 -1
  121. package/fixtures/cases/attachment-reference-dangles/library/products/support.md +1 -1
  122. package/fixtures/cases/attachment-reference-outside/expected.json +2 -1
  123. package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +1 -1
  124. package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +13 -10
  125. package/fixtures/cases/attachment-reference-outside/library/places/depot.md +1 -1
  126. package/fixtures/cases/attachment-reference-outside/library/products/seats.md +1 -1
  127. package/fixtures/cases/attachment-reference-outside/library/products/support.md +1 -1
  128. package/fixtures/cases/binary-any-reference/expected.json +2 -1
  129. package/fixtures/cases/binary-any-reference/library/notes/draft.md +1 -1
  130. package/fixtures/cases/binary-prototype-reference/expected.json +2 -1
  131. package/fixtures/cases/binary-prototype-reference/library/notes/draft.md +1 -1
  132. package/fixtures/cases/binary-typed-reference/expected.json +2 -1
  133. package/fixtures/cases/binary-typed-reference/library/notes/draft.md +1 -1
  134. package/fixtures/cases/boolean-field/expected.json +2 -1
  135. package/fixtures/cases/boolean-field/library/companies/acme.md +1 -1
  136. package/fixtures/cases/boolean-field/library/deals/renewal.md +49 -24
  137. package/fixtures/cases/boolean-field/schema.yaml +10 -11
  138. package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
  139. package/fixtures/cases/bracketed-link-definition/schema.yaml +2 -3
  140. package/fixtures/cases/closed-nested-object/expected.json +2 -1
  141. package/fixtures/cases/closed-nested-object/library/companies/acme.md +1 -1
  142. package/fixtures/cases/closed-nested-object/library/deals/renewal.md +50 -25
  143. package/fixtures/cases/closed-nested-object/schema.yaml +10 -11
  144. package/fixtures/cases/composed-root-reference/library/a.md +2 -2
  145. package/fixtures/cases/{conditional-section → conditional-long-text}/expected.json +3 -2
  146. package/fixtures/cases/{conditional-section → conditional-long-text}/library/questions/hosting.md +2 -2
  147. package/fixtures/cases/{conditional-section → conditional-long-text}/library/questions/payments.md +2 -2
  148. package/fixtures/cases/conditional-long-text/schema.yaml +13 -0
  149. package/fixtures/cases/cross-room-link/library/clients/acme.md +1 -1
  150. package/fixtures/cases/cross-room-reference/library/clients/acme.md +4 -4
  151. package/fixtures/cases/cross-room-reference/schema.yaml +1 -2
  152. package/fixtures/cases/date-time-format/expected.json +2 -1
  153. package/fixtures/cases/date-time-format/library/companies/acme.md +1 -1
  154. package/fixtures/cases/date-time-format/library/deals/renewal.md +49 -24
  155. package/fixtures/cases/date-time-format/schema.yaml +10 -11
  156. package/fixtures/cases/default-unfilled/library/companies/acme.md +1 -1
  157. package/fixtures/cases/default-unfilled/library/deals/renewal.md +47 -22
  158. package/fixtures/cases/default-unfilled/schema.yaml +10 -11
  159. package/fixtures/cases/defs-pattern/expected.json +2 -1
  160. package/fixtures/cases/defs-pattern/library/companies/acme.md +1 -1
  161. package/fixtures/cases/defs-pattern/library/deals/renewal.md +49 -24
  162. package/fixtures/cases/defs-pattern/schema.yaml +10 -11
  163. package/fixtures/cases/dependent-rule/library/companies/acme.md +1 -1
  164. package/fixtures/cases/dependent-rule/library/deals/renewal.md +48 -23
  165. package/fixtures/cases/dependent-rule/schema.yaml +10 -11
  166. package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
  167. package/fixtures/cases/duplicate-link-definition/schema.yaml +2 -3
  168. package/fixtures/cases/email-format/expected.json +2 -1
  169. package/fixtures/cases/email-format/library/companies/acme.md +1 -1
  170. package/fixtures/cases/email-format/library/deals/renewal.md +49 -24
  171. package/fixtures/cases/email-format/schema.yaml +10 -11
  172. package/fixtures/cases/equal-labels/expected.json +5 -0
  173. package/fixtures/cases/equal-labels/schema.yaml +4 -0
  174. package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
  175. package/fixtures/cases/fenced-link-definition/schema.yaml +2 -3
  176. package/fixtures/cases/field-enum/expected.json +2 -1
  177. package/fixtures/cases/field-enum/library/item.md +2 -2
  178. package/fixtures/cases/field-enum/schema.yaml +3 -4
  179. package/fixtures/cases/integer-field/expected.json +2 -1
  180. package/fixtures/cases/integer-field/library/companies/acme.md +1 -1
  181. package/fixtures/cases/integer-field/library/deals/renewal.md +49 -24
  182. package/fixtures/cases/integer-field/schema.yaml +10 -11
  183. package/fixtures/cases/json-schema-constructs/library/companies/acme.md +1 -1
  184. package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +49 -24
  185. package/fixtures/cases/json-schema-constructs/schema.yaml +10 -11
  186. package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
  187. package/fixtures/cases/labels-in-the-rooms-language/schema.yaml +9 -0
  188. package/fixtures/cases/lazy-list-item/expected.json +3 -0
  189. package/fixtures/cases/lazy-list-item/library/item.md +10 -0
  190. package/fixtures/cases/lazy-list-item/schema.yaml +3 -0
  191. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +1 -1
  192. package/fixtures/cases/list-item-enum/expected.json +7 -0
  193. package/fixtures/cases/list-item-enum/library/task.md +7 -0
  194. package/fixtures/cases/list-item-enum/schema.yaml +3 -0
  195. package/fixtures/cases/list-item-kind/expected.json +7 -0
  196. package/fixtures/cases/list-item-kind/library/task.md +6 -0
  197. package/fixtures/cases/list-item-kind/schema.yaml +3 -0
  198. package/fixtures/cases/list-items/expected.json +1 -0
  199. package/fixtures/cases/list-items/library/page.md +26 -0
  200. package/fixtures/cases/list-items/schema.yaml +10 -0
  201. package/fixtures/cases/list-of-objects-closed/expected.json +2 -1
  202. package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +1 -1
  203. package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +49 -25
  204. package/fixtures/cases/list-of-objects-closed/schema.yaml +10 -11
  205. package/fixtures/cases/list-of-objects-item/expected.json +2 -1
  206. package/fixtures/cases/list-of-objects-item/library/companies/acme.md +1 -1
  207. package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +49 -24
  208. package/fixtures/cases/list-of-objects-item/schema.yaml +10 -11
  209. package/fixtures/cases/list-of-objects-reference/expected.json +2 -1
  210. package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +1 -1
  211. package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +12 -9
  212. package/fixtures/cases/list-of-objects-reference/library/places/depot.md +1 -1
  213. package/fixtures/cases/list-of-objects-reference/library/products/seats.md +1 -1
  214. package/fixtures/cases/list-of-objects-reference/library/products/support.md +1 -1
  215. package/fixtures/cases/list-reference-path/expected.json +7 -0
  216. package/fixtures/cases/list-reference-path/library/page.md +5 -0
  217. package/fixtures/cases/list-reference-path/schema.yaml +3 -0
  218. package/fixtures/cases/list-reference-type/expected.json +7 -0
  219. package/fixtures/cases/list-reference-type/library/page.md +6 -0
  220. package/fixtures/cases/list-reference-type/schema.yaml +3 -0
  221. package/fixtures/cases/list-size/expected.json +2 -1
  222. package/fixtures/cases/list-size/library/companies/acme.md +1 -1
  223. package/fixtures/cases/list-size/library/deals/renewal.md +51 -24
  224. package/fixtures/cases/list-size/schema.yaml +10 -11
  225. package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
  226. package/fixtures/cases/long-value-past-six-levels/schema.yaml +15 -0
  227. package/fixtures/cases/malformed-list/context.json +1 -0
  228. package/fixtures/cases/malformed-list/expected.json +7 -0
  229. package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
  230. package/fixtures/cases/malformed-list/schema.yaml +6 -0
  231. package/fixtures/cases/member-document/library/people/ana.md +2 -2
  232. package/fixtures/cases/member-on-another-type/library/note.md +1 -1
  233. package/fixtures/cases/missing-required-field/library/item.md +1 -1
  234. package/fixtures/cases/missing-required-field/schema.yaml +3 -4
  235. package/fixtures/cases/misspelled-key/expected.json +2 -1
  236. package/fixtures/cases/misspelled-key/library/companies/acme.md +1 -1
  237. package/fixtures/cases/misspelled-key/library/deals/renewal.md +50 -25
  238. package/fixtures/cases/misspelled-key/schema.yaml +10 -11
  239. package/fixtures/cases/name-not-a-string/context.json +1 -0
  240. package/fixtures/cases/name-not-a-string/expected.json +5 -0
  241. package/fixtures/cases/name-not-a-string/schema.yaml +5 -0
  242. package/fixtures/cases/nested-defs/expected.json +2 -1
  243. package/fixtures/cases/nested-defs/library/deal.md +3 -3
  244. package/fixtures/cases/nested-object-reference/expected.json +2 -1
  245. package/fixtures/cases/nested-object-reference/library/companies/acme.md +1 -1
  246. package/fixtures/cases/nested-object-reference/library/deals/renewal.md +12 -9
  247. package/fixtures/cases/nested-object-reference/library/places/depot.md +1 -1
  248. package/fixtures/cases/nested-object-reference/library/products/seats.md +1 -1
  249. package/fixtures/cases/nested-object-reference/library/products/support.md +1 -1
  250. package/fixtures/cases/nested-reference/library/companies/acme.md +1 -1
  251. package/fixtures/cases/nested-reference/library/deals/renewal.md +13 -10
  252. package/fixtures/cases/nested-reference/library/places/depot.md +1 -1
  253. package/fixtures/cases/nested-reference/library/products/seats.md +1 -1
  254. package/fixtures/cases/nested-reference/library/products/support.md +1 -1
  255. package/fixtures/cases/nested-required-field/expected.json +2 -1
  256. package/fixtures/cases/nested-required-field/library/companies/acme.md +1 -1
  257. package/fixtures/cases/nested-required-field/library/deals/renewal.md +48 -23
  258. package/fixtures/cases/nested-required-field/schema.yaml +10 -11
  259. package/fixtures/cases/numeric-range/expected.json +2 -1
  260. package/fixtures/cases/numeric-range/library/companies/acme.md +1 -1
  261. package/fixtures/cases/numeric-range/library/deals/renewal.md +49 -24
  262. package/fixtures/cases/numeric-range/schema.yaml +10 -11
  263. package/fixtures/cases/one-key-two-labels/context.json +1 -0
  264. package/fixtures/cases/one-key-two-labels/expected.json +5 -0
  265. package/fixtures/cases/one-key-two-labels/schema.yaml +5 -0
  266. package/fixtures/cases/one-key-two-types/context.json +1 -0
  267. package/fixtures/cases/one-key-two-types/expected.json +5 -0
  268. package/fixtures/cases/one-key-two-types/schema.yaml +4 -0
  269. package/fixtures/cases/one-of-variant/expected.json +2 -1
  270. package/fixtures/cases/one-of-variant/library/companies/acme.md +1 -1
  271. package/fixtures/cases/one-of-variant/library/deals/renewal.md +49 -24
  272. package/fixtures/cases/one-of-variant/schema.yaml +10 -11
  273. package/fixtures/cases/other-room-reference/expected.json +2 -1
  274. package/fixtures/cases/other-room-reference/library/companies/acme.md +1 -1
  275. package/fixtures/cases/other-room-reference/library/deals/renewal.md +12 -9
  276. package/fixtures/cases/other-room-reference/library/places/depot.md +1 -1
  277. package/fixtures/cases/other-room-reference/library/products/seats.md +1 -1
  278. package/fixtures/cases/other-room-reference/library/products/support.md +1 -1
  279. package/fixtures/cases/prototype-field/expected.json +2 -1
  280. package/fixtures/cases/prototype-field/library/item.md +2 -2
  281. package/fixtures/cases/prototype-field/schema.yaml +2 -3
  282. package/fixtures/cases/reference-into-a-reserved-name/expected.json +2 -1
  283. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +1 -1
  284. package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
  285. package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
  286. package/fixtures/cases/referenced-missing-file/schema.yaml +3 -4
  287. package/fixtures/cases/sections-keyword-refused/context.json +1 -0
  288. package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
  289. package/fixtures/cases/{structured-section → sections-keyword-refused}/schema.yaml +1 -2
  290. package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
  291. package/fixtures/cases/shortcut-reference-link/schema.yaml +2 -3
  292. package/fixtures/cases/string-length/expected.json +2 -1
  293. package/fixtures/cases/string-length/library/companies/acme.md +1 -1
  294. package/fixtures/cases/string-length/library/deals/renewal.md +49 -24
  295. package/fixtures/cases/string-length/schema.yaml +10 -11
  296. package/fixtures/cases/submission-keys/library/notes/visitor.md +2 -2
  297. package/fixtures/cases/text-field-kind/expected.json +1 -4
  298. package/fixtures/cases/text-field-kind/library/page.md +1 -1
  299. package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
  300. package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
  301. package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
  302. package/fixtures/cases/thematic-break-ends-the-values/schema.yaml +3 -0
  303. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +1 -1
  304. package/fixtures/cases/types-folder-content/library/types/task.md +1 -1
  305. package/fixtures/cases/undeclared-field/expected.json +2 -1
  306. package/fixtures/cases/undeclared-field/library/item.md +2 -2
  307. package/fixtures/cases/undeclared-field/schema.yaml +2 -3
  308. package/fixtures/cases/unevaluated-items-closed/expected.json +2 -1
  309. package/fixtures/cases/unevaluated-items-closed/library/trip.md +13 -3
  310. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +2 -1
  311. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +3 -2
  312. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +3 -2
  313. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +2 -2
  314. package/fixtures/cases/unresolved-link/library/item.md +1 -1
  315. package/fixtures/cases/unresolved-link/schema.yaml +2 -3
  316. package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
  317. package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
  318. package/fixtures/cases/valid-typed-document/schema.yaml +5 -6
  319. package/fixtures/division.json +86 -41
  320. package/fixtures/forms.json +347 -0
  321. package/fixtures/preamble.json +29 -8
  322. package/fixtures/projection.json +121 -18
  323. package/fixtures/queries.json +449 -3
  324. package/package.json +10 -1
  325. package/dist/blocks.d.ts +0 -11
  326. package/dist/blocks.d.ts.map +0 -1
  327. package/dist/blocks.js +0 -91
  328. package/dist/condition.d.ts +0 -179
  329. package/dist/condition.d.ts.map +0 -1
  330. package/dist/condition.js +0 -598
  331. package/dist/links.d.ts +0 -29
  332. package/dist/links.d.ts.map +0 -1
  333. package/dist/links.js +0 -831
  334. package/dist/profile.d.ts +0 -6
  335. package/dist/profile.d.ts.map +0 -1
  336. package/dist/profile.js +0 -5
  337. package/dist/sections.d.ts +0 -11
  338. package/dist/sections.d.ts.map +0 -1
  339. package/dist/sections.js +0 -57
  340. package/fixtures/cases/conditional-section/schema.yaml +0 -14
  341. package/fixtures/cases/missing-section-item-kind/expected.json +0 -5
  342. package/fixtures/cases/missing-section-item-kind/schema.yaml +0 -6
  343. package/fixtures/cases/null-refused/expected.json +0 -6
  344. package/fixtures/cases/null-refused/library/companies/acme.md +0 -4
  345. package/fixtures/cases/null-refused/library/deals/renewal.md +0 -31
  346. package/fixtures/cases/null-refused/schema.yaml +0 -56
  347. package/fixtures/cases/open-map-value/expected.json +0 -6
  348. package/fixtures/cases/open-map-value/library/companies/acme.md +0 -4
  349. package/fixtures/cases/open-map-value/library/deals/renewal.md +0 -31
  350. package/fixtures/cases/open-map-value/schema.yaml +0 -56
  351. package/fixtures/cases/section-item-enum/expected.json +0 -6
  352. package/fixtures/cases/section-item-enum/library/task.md +0 -8
  353. package/fixtures/cases/section-item-enum/schema.yaml +0 -3
  354. package/fixtures/cases/section-item-kind/expected.json +0 -6
  355. package/fixtures/cases/section-item-kind/library/task.md +0 -8
  356. package/fixtures/cases/section-item-kind/schema.yaml +0 -3
  357. package/fixtures/cases/section-items/library/page.md +0 -42
  358. package/fixtures/cases/section-items/schema.yaml +0 -10
  359. package/fixtures/cases/section-reference-path/expected.json +0 -6
  360. package/fixtures/cases/section-reference-path/library/page.md +0 -7
  361. package/fixtures/cases/section-reference-path/schema.yaml +0 -3
  362. package/fixtures/cases/section-reference-type/expected.json +0 -6
  363. package/fixtures/cases/section-reference-type/library/page.md +0 -7
  364. package/fixtures/cases/section-reference-type/schema.yaml +0 -3
  365. package/fixtures/cases/structured-section/expected.json +0 -6
  366. /package/fixtures/cases/{conditional-section → conditional-long-text}/context.json +0 -0
  367. /package/fixtures/cases/{missing-section-item-kind → equal-labels}/context.json +0 -0
  368. /package/fixtures/cases/{null-refused → labels-in-the-rooms-language}/context.json +0 -0
  369. /package/fixtures/cases/{section-items → labels-in-the-rooms-language}/expected.json +0 -0
  370. /package/fixtures/cases/{open-map-value → lazy-list-item}/context.json +0 -0
  371. /package/fixtures/cases/{section-item-enum → list-item-enum}/context.json +0 -0
  372. /package/fixtures/cases/{section-item-kind → list-item-kind}/context.json +0 -0
  373. /package/fixtures/cases/{section-items → list-items}/context.json +0 -0
  374. /package/fixtures/cases/{section-items → list-items}/library/other.md +0 -0
  375. /package/fixtures/cases/{section-reference-path → list-reference-path}/context.json +0 -0
  376. /package/fixtures/cases/{section-reference-path → list-reference-path}/library/other.md +0 -0
  377. /package/fixtures/cases/{section-reference-type → list-reference-type}/context.json +0 -0
  378. /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
  379. /package/fixtures/cases/{structured-section → long-value-past-six-levels}/context.json +0 -0
@@ -10,6 +10,20 @@ cases compare `validate(library, context)` directly. Text-only cases carry
10
10
  `{ "binaryTargets": [] }`. Binary targets are membership declarations; the
11
11
  corpus supplies no binary bytes or placeholder Documents.
12
12
 
13
+ ## Forms
14
+
15
+ `forms.json` exercises how a typed Document writes its values in its body. It carries `schema`,
16
+ one schema text, `names`, the name each reference value's target shows, and three lists. Each of
17
+ `cases` carries `name`, the `type` its source declares, exact `source` and the `value` `parse`
18
+ reads with that type's definition, and optionally `ranges`, the exact source text of each listed
19
+ pointer's `Document.ranges` entry, `after`, the text `Document.listEnd` is followed by, the
20
+ `preamble`, `sections` and `text` it reads, `written: true` where `create(type)` with one `field`
21
+ change per value but `type` and a `text` change of the case's `text`, applied with the definition
22
+ and a `nameOf` reading `names`, serializes to `source` exactly, and `rendered`, each pointer's
23
+ exact text as GitHub Flavored Markdown renders it. Each of `refused` carries `name`, `type`,
24
+ `source` and the `refusal` `parse` answers, its `rule`, `location` and `line`. Each of `applied`
25
+ carries `name`, `type`, `source`, `changes` and the exact source `apply` writes.
26
+
13
27
  ## Preamble operations
14
28
 
15
29
  `preamble.json` exercises the public parse/apply/serialize seam separately from
@@ -18,7 +32,9 @@ the validation Libraries. Each row carries `name`, exact `source`, expected
18
32
  the source, compare `Document.preamble`, apply
19
33
  `{ kind: 'preamble', prior: preamble, value }`, and compare the serialized result.
20
34
  These cases cover empty and heading-free Documents, frontmatter boundaries,
21
- fenced headings, newline/source preservation, and a moved-export link rewrite.
35
+ fenced headings and a heading an HTML block holds, setext, indented and empty
36
+ headings that open a section, newline/source preservation, and a moved-export
37
+ link rewrite.
22
38
 
23
39
  ## Projection
24
40
 
@@ -31,8 +47,8 @@ optional `relabel`, an optional `filtered`, and `expected`.
31
47
  A case carrying a `move` lists both the Path its target sits at and the Path the
32
48
  move takes it to, because the collection holds that target either way.
33
49
 
34
- Verify the schema, parse the source, call `project(document, file, context)`
35
- with `documentTargets` and the verified type `definition` names, and compare against `expected`. Where
50
+ Verify the schema, parse the source with the verified type `definition` names, call
51
+ `project(document, file, context)` with `documentTargets` and that definition, and compare against `expected`. Where
36
52
  `links` is present, compare `links(document, file)` against it. Then check
37
53
  that the source is unchanged. Where `move` is present, apply
38
54
  `{ kind: 'link', href, to }`, confirm the serialized Document changed, and
@@ -43,7 +59,7 @@ exactly once, join the pieces with its `to`, parse the result, and confirm its
43
59
  projection is exactly the relabel's own `expected` and differs from the case's:
44
60
  a changed visible label changes the projection. Where `filtered` is present,
45
61
  apply `{ kind: 'field', name: field, value, prior }` with its `field` and
46
- `value` and the Document's current value as `prior`, confirm the serialized
62
+ `value` and the Document's current value as `prior` with the definition, confirm the serialized
47
63
  Document changed, and confirm its projection is still exactly `expected`: a
48
64
  change to a value that is not prose leaves the projection alone.
49
65
 
@@ -58,10 +74,8 @@ each span carries the exact `text` to embed and the exact `source` the returned
58
74
  `start` and `end` address in that case's source, or `{ "ok": false, "refusal": ... }`. Then
59
75
  check that the source is unchanged. A span's `text` and `source` differ where
60
76
  the embedded text repeats a continuation's own heading, carries an internal
61
- link's visible label, or carries a frontmatter value without the quotes the
62
- author wrote, and where the addressed extent encloses a declared structured
63
- section between two pieces one span packs together or the whole of a free-text
64
- value one span carries part of. `start` and `end` are UTF-8 byte offsets into the case's
77
+ link's visible label or carries a value without the escape the author wrote, and where the
78
+ addressed extent encloses a value list or a label between two pieces one span packs together. `start` and `end` are UTF-8 byte offsets into the case's
65
79
  source; every source in this corpus is ASCII, so a consumer compares the
66
80
  addressed `source` with an ordinary string slice.
67
81
 
@@ -76,7 +90,14 @@ the schema and plan `{ ...query, select: {} }` with `planOf` against its types.
76
90
  `matches(plan, candidate)` over the named Document, given its type's definition, and the
77
91
  condition `sql.tests` writes over a collection holding every Document of the table with the
78
92
  values `indexed` derives from it must both answer `matches`. A new operator adds its cases
79
- here first.
93
+ here first. With `types: ["task"]`, every `task` Document both evaluators match lies within the
94
+ index plan `walkOf` takes for each case: among the keys of the equality or list it walks, and
95
+ within the runs of keys it walks an order by each indexed field in, a missing value's among
96
+ them, so a new driving test adds its cases here too. Each of `orders` carries a `name`, one `orderBy` clause on a field the `task` type
97
+ names `indexed` and the `order` of every `task` Document, ties by Path in code-point order in
98
+ either direction. The SQL order `sql.sorted` writes over that collection, `compared` over the
99
+ value `heldAt` reads, its instant for a date-time, and the bytes of each Document's `indexKey`,
100
+ a missing value and `null` placed as the clause's `nulls` asks, must each give that order.
80
101
 
81
102
  ## Verdict format
82
103
 
@@ -92,22 +113,23 @@ Refusal:
92
113
  {
93
114
  "verdict": "refuse",
94
115
  "file": "<library path>",
95
- "location": "<JSON Pointer or section name>",
116
+ "location": "<JSON Pointer>",
96
117
  "rule": "<rule id>",
118
+ "line": 5,
97
119
  "referrers": ["<library path>"]
98
120
  }
99
121
  ```
100
122
 
101
- `location` is the JSON Pointer of the frontmatter value a rule concerns, such
102
- as `/shipping/city`, or the name of the section it concerns, and is omitted when
103
- the rule concerns neither. `referrers` is present only for
123
+ `location` is the JSON Pointer of the value a rule concerns, such as `/shipping/city`, and is
124
+ omitted when the rule concerns none. `line` is the line, from 1, of the Document's source the value
125
+ is written on, present when the value is written; a missing one has none. `referrers` is present only for
104
126
  `referenced-missing-file`. A schema refusal carries no `file`; its `location`
105
127
  is the JSON Pointer of the schema part it concerns, such as
106
128
  `/task/properties/title/type`, or `line <n>` for `schema-yaml`.
107
129
 
108
130
  ## Rule ids
109
131
 
110
- A frontmatter value that fails a JSON Schema keyword is refused under that
132
+ A value that fails a JSON Schema keyword is refused under that
111
133
  keyword's name, such as `required`, `type`, `enum`, `format`, `pattern`,
112
134
  `minimum`, `maxLength`, `maxItems` or `oneOf`, at the value's JSON Pointer; a
113
135
  missing required key is named by the Pointer it would sit at. A malformed
@@ -126,26 +148,29 @@ schema text. The model's own rules:
126
148
  | `$defs` | `$defs` is not a mapping |
127
149
  | `$ref` | A `$ref` reaches no subschema under `#/$defs/` of the same file |
128
150
  | `reference` | `reference` is not on a string or names something but a type, `any`, `attachment` |
129
- | `sections` | A section is not `{ kind: text }` or `{ kind: list, items }` over one scalar |
130
151
  | `member_document` | The mark is not a boolean, or a second type carries it |
152
+ | `indexed` | `indexed` names a field a type cannot index, or more than its caller's bounds |
153
+ | `duplicate-label` | Two fields of one object show one label: a field's `title`, else its key |
154
+ | `conflicting-label` | Declarations of one key in `anyOf`, `oneOf`, `then`, `else` or a composed shape give it two `title`s |
155
+ | `conflicting-type` | Such declarations give one key two JSON types, integer and number counting as one |
156
+ | `name-type` | A type's top-level `name` is not a string |
157
+ | `heading-depth` | A value written under a heading sits past `######`: `##` at the top, a level deeper per property or list item, none inside a `json` block |
131
158
  | `unknown-type` | A file declares a type absent from the governing schema, or other than its typed path requires it to name |
132
159
  | `undeclared-field` | A closed object carries a key it does not declare |
133
- | `required-section` | A required section heading is missing |
134
- | `conditional-section` | A section its type's `if` branch requires is absent or holds no text |
135
- | `unresolved-reference` | A reference at any depth or a section item reaches no member it admits |
160
+ | `malformed-value` | A value is not written in its form, or a typed Document's frontmatter holds a key that is not House's |
161
+ | `repeated-value` | A value is written twice: two lines, a line and a heading, or two headings |
162
+ | `unknown-label` | A line, heading or column of a closed object names no field |
163
+ | `unresolved-reference` | A reference at any depth reaches no member it admits |
136
164
  | `unresolved-link` | A body link is an absolute path, leaves the collection or, from a typed Document at a document path, reaches a reserved name |
137
165
  | `room-md-type` | `ROOM.md` declares a type |
138
166
  | `required-body` | A file at a typed path that requires a body has a body holding no text |
139
- | `structured-section` | A declared list section is not a list of values of its item schema |
140
167
  | `referenced-missing-file` | Remaining files still reference an absent path |
141
168
  | `unwritable-link` | No Markdown destination form can carry a new link destination |
169
+ | `required-section` | A section change names no free section of the Document |
142
170
  | `division-bound` | A division bound is not a whole number of at least 2 |
143
171
 
144
- A `then` or `else` of an `if` on a type, in its `allOf` or in such a branch may hold
145
- `sections`, naming sections the type declares as the type declares them, else `sections`.
146
-
147
- `unwritable-link` is refused by `apply` and `division-bound` by `divide`, not
148
- by `validate`, so no case under `cases/` carries either.
172
+ `unwritable-link` and `required-section` are refused by `apply` and `division-bound` by
173
+ `divide`, not by `validate`, so no case under `cases/` carries them.
149
174
 
150
175
  A reference that admits `attachment` reaches any path in the same Library, so
151
176
  neither `unresolved-reference` for an absent target nor
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  type: task
3
- title: Ship
4
3
  ---
4
+ - **title**: Ship
5
5
 
6
6
  ## Description
7
7
 
@@ -1,6 +1,5 @@
1
1
  task:
2
2
  properties:
3
3
  title: { type: string }
4
- required: [title]
5
- sections:
6
- Description: { kind: text, required: true }
4
+ description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
5
+ required: [ title, description ]
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: company
3
- name: Acme
4
3
  ---
4
+ # Acme
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  type: deal
3
- title: Lead
4
- company: ../companies/acme.md
5
- stage: lead
6
3
  ---
4
+ - **title**: Lead
5
+ - **company**: [Acme](../companies/acme.md)
6
+ - **stage**: lead
@@ -4,7 +4,7 @@ $defs:
4
4
  properties:
5
5
  city: { type: string }
6
6
  country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [city]
7
+ required: [ city ]
8
8
  company:
9
9
  properties:
10
10
  name: { type: string }
@@ -13,13 +13,13 @@ deal:
13
13
  properties:
14
14
  title: { type: string, minLength: 1, maxLength: 40 }
15
15
  company: { type: string, reference: company }
16
- stage: { enum: [lead, proposal, won, lost], default: lead }
16
+ stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
17
  amount: { type: integer, minimum: 0 }
18
18
  probability: { type: number, minimum: 0, maximum: 1 }
19
19
  open: { type: boolean }
20
20
  closes_at: { type: string, format: date-time }
21
21
  contact_email: { type: string, format: email }
22
- note: { type: [string, 'null'] }
22
+ note: { type: [ string, 'null' ] }
23
23
  shipping: { $ref: '#/$defs/address' }
24
24
  tags: { type: array, items: { type: string }, maxItems: 3 }
25
25
  lines:
@@ -29,7 +29,7 @@ deal:
29
29
  properties:
30
30
  product: { type: string }
31
31
  quantity: { type: integer, minimum: 1 }
32
- required: [product, quantity]
32
+ required: [ product, quantity ]
33
33
  blocks:
34
34
  type: array
35
35
  items:
@@ -37,20 +37,19 @@ deal:
37
37
  - properties:
38
38
  kind: { const: paragraph }
39
39
  text: { type: string }
40
- required: [kind, text]
40
+ required: [ kind, text ]
41
41
  - properties:
42
42
  kind: { const: quiz }
43
43
  question: { type: string }
44
- required: [kind, question]
44
+ required: [ kind, question ]
45
45
  attributes:
46
46
  type: object
47
47
  additionalProperties: { type: string }
48
- required: [title, company, stage]
48
+ description: { type: string, contentMediaType: text/markdown, title: Description }
49
+ required: [ title, company, stage ]
49
50
  if:
50
51
  properties:
51
52
  stage: { const: won }
52
- required: [stage]
53
+ required: [ stage ]
53
54
  then:
54
- required: [amount]
55
- sections:
56
- Description: { kind: text }
55
+ required: [ amount ]
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  type: task
3
- title: Ship
4
3
  ---
4
+ - **title**: Ship
5
5
 
6
6
  ## Description
7
7
 
@@ -1,6 +1,5 @@
1
1
  task:
2
2
  properties:
3
3
  title: { type: string }
4
- required: [title]
5
- sections:
6
- Description: { kind: text, required: true }
4
+ description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
5
+ required: [ title, description ]
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: company
3
- name: Acme
4
3
  ---
4
+ # Acme
@@ -1,15 +1,18 @@
1
1
  ---
2
2
  type: deal
3
- title: Renewal
4
- company: ../companies/acme.md
5
- shipping:
6
- city: Paris
7
- depot: ../places/depot.md
8
- lines:
9
- - product: ../products/seats.md
10
- quantity: 10
11
- - { product: ../products/support.md, quantity: 1 }
12
- contract: ../products/seats.md
13
3
  ---
4
+ - **title**: Renewal
5
+ - **company**: [Acme](../companies/acme.md)
6
+ - **shipping**:
7
+ - **city**: Paris
8
+ - **depot**: [Depot](../places/depot.md)
9
+ - **contract**: [Seats](../products/seats.md)
14
10
 
15
11
  The yearly renewal.
12
+
13
+ ## lines
14
+
15
+ | product | quantity |
16
+ | --- | --- |
17
+ | [Seats](../products/seats.md) | 10 |
18
+ | [Support](../products/support.md) | 1 |
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: place
3
- name: Depot
4
3
  ---
4
+ # Depot
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: product
3
- name: Seats
4
3
  ---
4
+ # Seats
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: product
3
- name: Support
4
3
  ---
4
+ # Support
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: company
3
- name: Acme
4
3
  ---
4
+ # Acme
@@ -1,15 +1,18 @@
1
1
  ---
2
2
  type: deal
3
- title: Renewal
4
- company: ../companies/acme.md
5
- shipping:
6
- city: Paris
7
- depot: ../places/depot.md
8
- lines:
9
- - product: ../products/seats.md
10
- quantity: 10
11
- - { product: ../products/support.md, quantity: 1 }
12
- contract: ../assets/contract.pdf
13
3
  ---
4
+ - **title**: Renewal
5
+ - **company**: [Acme](../companies/acme.md)
6
+ - **shipping**:
7
+ - **city**: Paris
8
+ - **depot**: [Depot](../places/depot.md)
9
+ - **contract**: [contract.pdf](../assets/contract.pdf)
14
10
 
15
11
  The yearly renewal.
12
+
13
+ ## lines
14
+
15
+ | product | quantity |
16
+ | --- | --- |
17
+ | [Seats](../products/seats.md) | 10 |
18
+ | [Support](../products/support.md) | 1 |
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: place
3
- name: Depot
4
3
  ---
4
+ # Depot
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: product
3
- name: Seats
4
3
  ---
4
+ # Seats
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: product
3
- name: Support
4
3
  ---
4
+ # Support
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "verdict": "refuse",
3
3
  "file": "deals/renewal.md",
4
+ "rule": "unresolved-reference",
4
5
  "location": "/contract",
5
- "rule": "unresolved-reference"
6
+ "line": 9
6
7
  }
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: company
3
- name: Acme
4
3
  ---
4
+ # Acme
@@ -1,15 +1,18 @@
1
1
  ---
2
2
  type: deal
3
- title: Renewal
4
- company: ../companies/acme.md
5
- shipping:
6
- city: Paris
7
- depot: ../places/depot.md
8
- lines:
9
- - product: ../products/seats.md
10
- quantity: 10
11
- - { product: ../products/support.md, quantity: 1 }
12
- contract: /rooms/other/assets/contract.pdf
13
3
  ---
4
+ - **title**: Renewal
5
+ - **company**: [Acme](../companies/acme.md)
6
+ - **shipping**:
7
+ - **city**: Paris
8
+ - **depot**: [Depot](../places/depot.md)
9
+ - **contract**: [contract.pdf](/rooms/other/assets/contract.pdf)
14
10
 
15
11
  The yearly renewal.
12
+
13
+ ## lines
14
+
15
+ | product | quantity |
16
+ | --- | --- |
17
+ | [Seats](../products/seats.md) | 10 |
18
+ | [Support](../products/support.md) | 1 |
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: place
3
- name: Depot
4
3
  ---
4
+ # Depot
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: product
3
- name: Seats
4
3
  ---
4
+ # Seats
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: product
3
- name: Support
4
3
  ---
4
+ # Support
@@ -2,5 +2,6 @@
2
2
  "verdict": "refuse",
3
3
  "file": "notes/draft.md",
4
4
  "rule": "unresolved-reference",
5
- "location": "/subject"
5
+ "location": "/subject",
6
+ "line": 4
6
7
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  type: note
3
- subject: ../assets/person.bin
4
3
  ---
4
+ - **subject**: [person.bin](../assets/person.bin)
5
5
 
6
6
  [Original](../assets/person.bin)
@@ -2,5 +2,6 @@
2
2
  "verdict": "refuse",
3
3
  "file": "notes/draft.md",
4
4
  "rule": "unresolved-reference",
5
- "location": "/subject"
5
+ "location": "/subject",
6
+ "line": 4
6
7
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  type: note
3
- subject: ../constructor
4
3
  ---
4
+ - **subject**: [constructor](../constructor)
5
5
 
6
6
  [Original](../constructor)
@@ -2,5 +2,6 @@
2
2
  "verdict": "refuse",
3
3
  "file": "notes/draft.md",
4
4
  "rule": "unresolved-reference",
5
- "location": "/subject"
5
+ "location": "/subject",
6
+ "line": 4
6
7
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  type: note
3
- subject: ../assets/person.bin
4
3
  ---
4
+ - **subject**: [person.bin](../assets/person.bin)
5
5
 
6
6
  [Original](../assets/person.bin)
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "verdict": "refuse",
3
3
  "file": "deals/renewal.md",
4
+ "rule": "malformed-value",
4
5
  "location": "/open",
5
- "rule": "type"
6
+ "line": 9
6
7
  }
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  type: company
3
- name: Acme
4
3
  ---
4
+ # Acme
@@ -1,30 +1,55 @@
1
1
  ---
2
2
  type: deal
3
- title: Renewal
4
- company: ../companies/acme.md
5
- stage: won
6
- amount: 1200
7
- probability: 0.5
8
- open: "no"
9
- closes_at: 2026-10-10T09:30:00Z
10
- contact_email: ana@example.com
11
- note: null
12
- shipping:
13
- city: Paris
14
- country: FR
15
- tags: [renewal, priority]
16
- lines:
17
- - product: seats
18
- quantity: 10
19
- - product: support
20
- quantity: 1
21
- blocks:
22
- - kind: paragraph
23
- text: Signed.
24
- - { kind: quiz, question: Renew next year? }
25
- attributes:
26
- region: emea
27
3
  ---
4
+ - **title**: Renewal
5
+ - **company**: [Acme](../companies/acme.md)
6
+ - **stage**: won
7
+ - **amount**: 1200
8
+ - **probability**: 0.5
9
+ - **open**: no
10
+ - **closes_at**: 2026-10-10T09:30:00Z
11
+ - **contact_email**: ana@example.com
12
+ - **shipping**:
13
+ - **city**: Paris
14
+ - **country**: FR
15
+ - **tags**:
16
+ - renewal
17
+ - priority
18
+ - **attributes**:
19
+ - **region**: emea
20
+
21
+ ## note
22
+
23
+ ```json
24
+ null
25
+ ```
26
+
27
+ ## lines
28
+
29
+ | product | quantity |
30
+ | --- | --- |
31
+ | seats | 10 |
32
+ | support | 1 |
33
+
34
+ ## blocks
35
+
36
+ ### 1
37
+
38
+ ```json
39
+ {
40
+ "kind": "paragraph",
41
+ "text": "Signed."
42
+ }
43
+ ```
44
+
45
+ ### 2
46
+
47
+ ```json
48
+ {
49
+ "kind": "quiz",
50
+ "question": "Renew next year?"
51
+ }
52
+ ```
28
53
 
29
54
  ## Description
30
55