@agentshouse/mdmodel 0.1.0-c807a6b98e2b4 → 0.1.0-c839e4b34c8dc

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 (318) hide show
  1. package/API.md +94 -115
  2. package/README.md +15 -14
  3. package/dist/built-in.d.ts.map +1 -1
  4. package/dist/built-in.js +10 -1
  5. package/dist/definition.d.ts +10 -2
  6. package/dist/definition.d.ts.map +1 -1
  7. package/dist/definition.js +97 -19
  8. package/dist/document.d.ts +3 -2
  9. package/dist/document.d.ts.map +1 -1
  10. package/dist/document.js +113 -71
  11. package/dist/event.d.ts +5 -8
  12. package/dist/event.d.ts.map +1 -1
  13. package/dist/event.js +4 -3
  14. package/dist/facts.d.ts.map +1 -1
  15. package/dist/facts.js +8 -4
  16. package/dist/fields.d.ts +1 -1
  17. package/dist/fields.d.ts.map +1 -1
  18. package/dist/fields.js +2 -2
  19. package/dist/folders.d.ts +5 -0
  20. package/dist/folders.d.ts.map +1 -0
  21. package/dist/folders.js +19 -0
  22. package/dist/house-model.d.ts +283 -20
  23. package/dist/house-model.d.ts.map +1 -1
  24. package/dist/house-model.js +147 -14
  25. package/dist/house-references/patterns.d.ts +5 -1
  26. package/dist/house-references/patterns.d.ts.map +1 -1
  27. package/dist/house-references/patterns.js +8 -1
  28. package/dist/index.d.ts +21 -15
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +15 -12
  31. package/dist/indexed.d.ts +10 -0
  32. package/dist/indexed.d.ts.map +1 -0
  33. package/dist/indexed.js +63 -0
  34. package/dist/kinds.d.ts +9 -1
  35. package/dist/kinds.d.ts.map +1 -1
  36. package/dist/kinds.js +68 -0
  37. package/dist/markdown.d.ts +0 -4
  38. package/dist/markdown.d.ts.map +1 -1
  39. package/dist/markdown.js +1 -34
  40. package/dist/moment.d.ts +9 -0
  41. package/dist/moment.d.ts.map +1 -0
  42. package/dist/moment.js +40 -0
  43. package/dist/not-ready.d.ts +2 -0
  44. package/dist/not-ready.d.ts.map +1 -0
  45. package/dist/not-ready.js +5 -0
  46. package/dist/paths.d.ts +6 -0
  47. package/dist/paths.d.ts.map +1 -1
  48. package/dist/paths.js +33 -3
  49. package/dist/query/language.d.ts +4 -1
  50. package/dist/query/language.d.ts.map +1 -1
  51. package/dist/query/language.js +8 -7
  52. package/dist/query/match.d.ts +1 -1
  53. package/dist/query/match.d.ts.map +1 -1
  54. package/dist/query/match.js +3 -24
  55. package/dist/query/rows.d.ts +6 -1
  56. package/dist/query/rows.d.ts.map +1 -1
  57. package/dist/query/rows.js +37 -8
  58. package/dist/query/sql.d.ts +10 -1
  59. package/dist/query/sql.d.ts.map +1 -1
  60. package/dist/query/sql.js +22 -3
  61. package/dist/query/walk.d.ts +73 -0
  62. package/dist/query/walk.d.ts.map +1 -0
  63. package/dist/query/walk.js +277 -0
  64. package/dist/references.d.ts +2 -2
  65. package/dist/references.d.ts.map +1 -1
  66. package/dist/references.js +1 -1
  67. package/dist/reserved.d.ts +1 -1
  68. package/dist/reserved.d.ts.map +1 -1
  69. package/dist/reserved.js +15 -6
  70. package/dist/room-types.d.ts +2 -1
  71. package/dist/room-types.d.ts.map +1 -1
  72. package/dist/room-types.js +16 -11
  73. package/dist/schema.d.ts +1 -1
  74. package/dist/schema.d.ts.map +1 -1
  75. package/dist/schema.js +6 -7
  76. package/dist/types.d.ts +11 -31
  77. package/dist/types.d.ts.map +1 -1
  78. package/dist/validate.d.ts +7 -3
  79. package/dist/validate.d.ts.map +1 -1
  80. package/dist/validate.js +108 -46
  81. package/dist/view.d.ts +5 -0
  82. package/dist/view.d.ts.map +1 -0
  83. package/dist/view.js +27 -0
  84. package/dist/yaml.d.ts +7 -5
  85. package/dist/yaml.d.ts.map +1 -1
  86. package/dist/yaml.js +154 -33
  87. package/fixtures/README.md +65 -57
  88. package/fixtures/cases/absent-link-dangles/{schema.yaml → schema.md} +2 -0
  89. package/fixtures/cases/absent-optional-field/{schema.yaml → schema.md} +2 -0
  90. package/fixtures/cases/absolute-link/{schema.yaml → schema.md} +2 -0
  91. package/fixtures/cases/attachment-reference-any-file/{schema.yaml → schema.md} +2 -0
  92. package/fixtures/cases/attachment-reference-dangles/{schema.yaml → schema.md} +2 -0
  93. package/fixtures/cases/attachment-reference-outside/{schema.yaml → schema.md} +2 -0
  94. package/fixtures/cases/binary-any-reference/{schema.yaml → schema.md} +2 -0
  95. package/fixtures/cases/binary-document-collision/{schema.yaml → schema.md} +2 -0
  96. package/fixtures/cases/binary-image-dangles/{schema.yaml → schema.md} +2 -0
  97. package/fixtures/cases/binary-link-dangles/{schema.yaml → schema.md} +2 -0
  98. package/fixtures/cases/binary-link-outside-collection/{schema.yaml → schema.md} +2 -0
  99. package/fixtures/cases/binary-prototype-reference/{schema.yaml → schema.md} +2 -0
  100. package/fixtures/cases/binary-typed-reference/{schema.yaml → schema.md} +2 -0
  101. package/fixtures/cases/block-scalar-frontmatter/expected.json +1 -0
  102. package/fixtures/cases/block-scalar-frontmatter/library/notes/literal.md +17 -0
  103. package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
  104. package/fixtures/cases/boolean-field/{schema.yaml → schema.md} +2 -0
  105. package/fixtures/cases/{duplicate-link-definition/schema.yaml → bracketed-link-definition/schema.md} +2 -0
  106. package/fixtures/cases/closed-nested-object/{schema.yaml → schema.md} +2 -0
  107. package/fixtures/cases/composed-root-reference/{schema.yaml → schema.md} +2 -0
  108. package/fixtures/cases/conditional-long-text/{schema.yaml → schema.md} +2 -0
  109. package/fixtures/cases/cross-room-link/{schema.yaml → schema.md} +2 -0
  110. package/fixtures/cases/cross-room-reference/{schema.yaml → schema.md} +2 -0
  111. package/fixtures/cases/date-time-format/{schema.yaml → schema.md} +2 -0
  112. package/fixtures/cases/declared-binary-links/schema.md +3 -0
  113. package/fixtures/cases/default-unfilled/schema.md +57 -0
  114. package/fixtures/cases/defs-pattern/schema.md +57 -0
  115. package/fixtures/cases/dependent-rule/schema.md +57 -0
  116. package/fixtures/cases/{bracketed-link-definition/schema.yaml → duplicate-link-definition/schema.md} +2 -0
  117. package/fixtures/cases/email-format/schema.md +57 -0
  118. package/fixtures/cases/equal-labels/{schema.yaml → schema.md} +2 -0
  119. package/fixtures/cases/fenced-link-definition/schema.md +7 -0
  120. package/fixtures/cases/field-enum/{schema.yaml → schema.md} +2 -0
  121. package/fixtures/cases/folder-keeps-a-built-in-type/context.json +1 -0
  122. package/fixtures/cases/folder-keeps-a-built-in-type/expected.json +1 -0
  123. package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/door.md +3 -0
  124. package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/host.md +13 -0
  125. package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/map.md +24 -0
  126. package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/open.md +13 -0
  127. package/fixtures/cases/folder-keeps-a-built-in-type/schema.md +9 -0
  128. package/fixtures/cases/folder-keeps-a-record/context.json +1 -0
  129. package/fixtures/cases/folder-keeps-a-record/expected.json +1 -0
  130. package/fixtures/cases/folder-keeps-a-record/library/tickets/2026-11-16-d_1.r.md +13 -0
  131. package/fixtures/cases/folder-keeps-a-record/library/tickets/door.md +3 -0
  132. package/fixtures/cases/folder-keeps-a-record/schema.md +9 -0
  133. package/fixtures/cases/folder-names-no-type-of-the-schema/context.json +1 -0
  134. package/fixtures/cases/folder-names-no-type-of-the-schema/expected.json +5 -0
  135. package/fixtures/cases/folder-names-no-type-of-the-schema/schema.md +7 -0
  136. package/fixtures/cases/folder-nearer-entry-types-a-document/context.json +1 -0
  137. package/fixtures/cases/folder-nearer-entry-types-a-document/expected.json +6 -0
  138. package/fixtures/cases/folder-nearer-entry-types-a-document/library/tickets/archive/2025/old.md +1 -0
  139. package/fixtures/cases/folder-nearer-entry-types-a-document/schema.md +15 -0
  140. package/fixtures/cases/folder-refuses-a-declared-any/context.json +1 -0
  141. package/fixtures/cases/folder-refuses-a-declared-any/expected.json +6 -0
  142. package/fixtures/cases/folder-refuses-a-declared-any/library/tickets/door.md +5 -0
  143. package/fixtures/cases/folder-refuses-a-declared-any/schema.md +9 -0
  144. package/fixtures/cases/folder-refuses-another-declared-type/context.json +1 -0
  145. package/fixtures/cases/folder-refuses-another-declared-type/expected.json +6 -0
  146. package/fixtures/cases/folder-refuses-another-declared-type/library/tickets/door.md +5 -0
  147. package/fixtures/cases/folder-refuses-another-declared-type/schema.md +12 -0
  148. package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/context.json +1 -0
  149. package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/expected.json +1 -0
  150. package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/notes/plan.md +7 -0
  151. package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/tickets/door.md +3 -0
  152. package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/tickets/gate.md +7 -0
  153. package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/schema.md +13 -0
  154. package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/context.json +1 -0
  155. package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/expected.json +6 -0
  156. package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/library/tickets/2026/gate.md +1 -0
  157. package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/schema.md +9 -0
  158. package/fixtures/cases/folder-types-a-document-that-names-no-type/context.json +1 -0
  159. package/fixtures/cases/folder-types-a-document-that-names-no-type/expected.json +7 -0
  160. package/fixtures/cases/folder-types-a-document-that-names-no-type/library/tickets/door.md +3 -0
  161. package/fixtures/cases/folder-types-a-document-that-names-no-type/schema.md +9 -0
  162. package/fixtures/cases/folder-under-a-reserved-name/context.json +1 -0
  163. package/fixtures/cases/folder-under-a-reserved-name/expected.json +5 -0
  164. package/fixtures/cases/folder-under-a-reserved-name/schema.md +7 -0
  165. package/fixtures/cases/folder-without-a-trailing-slash/context.json +1 -0
  166. package/fixtures/cases/folder-without-a-trailing-slash/expected.json +5 -0
  167. package/fixtures/cases/folder-without-a-trailing-slash/schema.md +7 -0
  168. package/fixtures/cases/frontmatter-construct/context.json +1 -0
  169. package/fixtures/cases/frontmatter-construct/expected.json +7 -0
  170. package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
  171. package/fixtures/cases/integer-field/schema.md +57 -0
  172. package/fixtures/cases/interrupted-link-definition/schema.md +3 -0
  173. package/fixtures/cases/json-schema-constructs/schema.md +57 -0
  174. package/fixtures/cases/labels-in-the-rooms-language/{schema.yaml → schema.md} +2 -0
  175. package/fixtures/cases/lazy-list-item/{schema.yaml → schema.md} +2 -0
  176. package/fixtures/cases/link-into-a-reserved-name/{schema.yaml → schema.md} +2 -0
  177. package/fixtures/cases/list-item-enum/{schema.yaml → schema.md} +2 -0
  178. package/fixtures/cases/list-item-kind/{schema.yaml → schema.md} +2 -0
  179. package/fixtures/cases/list-items/{schema.yaml → schema.md} +2 -0
  180. package/fixtures/cases/list-of-objects-closed/schema.md +57 -0
  181. package/fixtures/cases/list-of-objects-item/schema.md +57 -0
  182. package/fixtures/cases/list-of-objects-reference/{schema.yaml → schema.md} +2 -0
  183. package/fixtures/cases/list-reference-path/{schema.yaml → schema.md} +2 -0
  184. package/fixtures/cases/list-reference-type/{schema.yaml → schema.md} +2 -0
  185. package/fixtures/cases/list-size/schema.md +57 -0
  186. package/fixtures/cases/long-fence-link-definition/schema.md +3 -0
  187. package/fixtures/cases/long-value-past-six-levels/{schema.yaml → schema.md} +2 -0
  188. package/fixtures/cases/malformed-definition/{schema.yaml → schema.md} +2 -0
  189. package/fixtures/cases/malformed-list/{schema.yaml → schema.md} +2 -0
  190. package/fixtures/cases/member-document/{schema.yaml → schema.md} +2 -0
  191. package/fixtures/cases/member-on-another-type/{schema.yaml → schema.md} +2 -0
  192. package/fixtures/cases/missing-required-field/{schema.yaml → schema.md} +2 -0
  193. package/fixtures/cases/misspelled-key/schema.md +57 -0
  194. package/fixtures/cases/name-not-a-string/{schema.yaml → schema.md} +2 -0
  195. package/fixtures/cases/nested-defs/{schema.yaml → schema.md} +2 -0
  196. package/fixtures/cases/nested-object-reference/schema.md +34 -0
  197. package/fixtures/cases/nested-reference/schema.md +34 -0
  198. package/fixtures/cases/nested-required-field/schema.md +57 -0
  199. package/fixtures/cases/numeric-range/schema.md +57 -0
  200. package/fixtures/cases/one-key-two-labels/{schema.yaml → schema.md} +2 -0
  201. package/fixtures/cases/one-key-two-types/{schema.yaml → schema.md} +2 -0
  202. package/fixtures/cases/one-of-variant/schema.md +57 -0
  203. package/fixtures/cases/other-room-reference/schema.md +34 -0
  204. package/fixtures/cases/paragraph-link-definition/schema.md +3 -0
  205. package/fixtures/cases/prototype-field/schema.md +7 -0
  206. package/fixtures/cases/quoted-link-definition/schema.md +3 -0
  207. package/fixtures/cases/reference-into-a-reserved-name/{schema.yaml → schema.md} +2 -0
  208. package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
  209. package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
  210. package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
  211. package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
  212. package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
  213. package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
  214. package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
  215. package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
  216. package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
  217. package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
  218. package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
  219. package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
  220. package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
  221. package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
  222. package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
  223. package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
  224. package/fixtures/cases/{referenced-missing-file/schema.yaml → reference-to-any-file-name/schema.md} +2 -0
  225. package/fixtures/cases/referenced-missing-file/schema.md +12 -0
  226. package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
  227. package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
  228. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
  229. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
  230. package/fixtures/cases/referenced-missing-non-latin-file/schema.md +12 -0
  231. package/fixtures/cases/remote-ref/{schema.yaml → schema.md} +2 -0
  232. package/fixtures/cases/schema-body-ignored/context.json +1 -0
  233. package/fixtures/cases/schema-body-ignored/expected.json +1 -0
  234. package/fixtures/cases/schema-body-ignored/schema.md +9 -0
  235. package/fixtures/cases/schema-type-named-folders/context.json +1 -0
  236. package/fixtures/cases/schema-type-named-folders/expected.json +5 -0
  237. package/fixtures/cases/schema-type-named-folders/schema.md +5 -0
  238. package/fixtures/cases/schema-type-named-type/context.json +1 -0
  239. package/fixtures/cases/schema-type-named-type/expected.json +5 -0
  240. package/fixtures/cases/{unknown-type/schema.yaml → schema-type-named-type/schema.md} +3 -1
  241. package/fixtures/cases/second-member-document/{schema.yaml → schema.md} +2 -0
  242. package/fixtures/cases/sections-keyword-refused/{schema.yaml → schema.md} +2 -0
  243. package/fixtures/cases/shortcut-reference-link/schema.md +7 -0
  244. package/fixtures/cases/string-length/schema.md +57 -0
  245. package/fixtures/cases/submission-keys/{schema.yaml → schema.md} +2 -0
  246. package/fixtures/cases/text-field-kind/{schema.yaml → schema.md} +2 -0
  247. package/fixtures/cases/thematic-break-ends-the-values/{schema.yaml → schema.md} +2 -0
  248. package/fixtures/cases/truncated-link-definition/schema.md +3 -0
  249. package/fixtures/cases/typed-path-names-another-type/{schema.yaml → schema.md} +2 -0
  250. package/fixtures/cases/typed-path-names-its-type/{schema.yaml → schema.md} +2 -0
  251. package/fixtures/cases/typed-path-names-no-type/{schema.yaml → schema.md} +2 -0
  252. package/fixtures/cases/types-folder-content/{schema.yaml → schema.md} +2 -0
  253. package/fixtures/cases/undeclared-field/schema.md +7 -0
  254. package/fixtures/cases/unevaluated-items-closed/{schema.yaml → schema.md} +2 -0
  255. package/fixtures/cases/unique-in-app-schema/context.json +1 -0
  256. package/fixtures/cases/unique-in-app-schema/expected.json +5 -0
  257. package/fixtures/cases/unique-in-app-schema/schema.yaml +7 -0
  258. package/fixtures/cases/unique-indexed-field/context.json +1 -0
  259. package/fixtures/cases/unique-indexed-field/expected.json +1 -0
  260. package/fixtures/cases/unique-indexed-field/library/tickets/first.md +8 -0
  261. package/fixtures/cases/unique-indexed-field/library/tickets/second.md +8 -0
  262. package/fixtures/cases/unique-indexed-field/schema.md +9 -0
  263. package/fixtures/cases/unique-off-indexed-field/context.json +1 -0
  264. package/fixtures/cases/unique-off-indexed-field/expected.json +5 -0
  265. package/fixtures/cases/unique-off-indexed-field/schema.md +9 -0
  266. package/fixtures/cases/unlisted-reference-type/{schema.yaml → schema.md} +2 -0
  267. package/fixtures/cases/unnamed-typed-path-checks-its-fields/{schema.yaml → schema.md} +2 -0
  268. package/fixtures/cases/unnamed-typed-path-names-a-type/{schema.yaml → schema.md} +2 -0
  269. package/fixtures/cases/unnamed-typed-path-reads-its-type/{schema.yaml → schema.md} +2 -0
  270. package/fixtures/cases/unnamed-typed-path-without-a-body/{schema.yaml → schema.md} +2 -0
  271. package/fixtures/cases/unresolved-link/schema.md +7 -0
  272. package/fixtures/cases/valid-typed-document/{schema.yaml → schema.md} +2 -0
  273. package/fixtures/cases/wide-item-fence-link/schema.md +3 -0
  274. package/fixtures/forms.json +24 -0
  275. package/fixtures/preamble.json +4 -4
  276. package/fixtures/queries.json +1172 -2
  277. package/fixtures/references.json +15 -0
  278. package/package.json +2 -2
  279. package/dist/divide.d.ts +0 -3
  280. package/dist/divide.d.ts.map +0 -1
  281. package/dist/divide.js +0 -321
  282. package/dist/project.d.ts +0 -22
  283. package/dist/project.d.ts.map +0 -1
  284. package/dist/project.js +0 -101
  285. package/fixtures/cases/declared-binary-links/schema.yaml +0 -1
  286. package/fixtures/cases/default-unfilled/schema.yaml +0 -55
  287. package/fixtures/cases/defs-pattern/schema.yaml +0 -55
  288. package/fixtures/cases/dependent-rule/schema.yaml +0 -55
  289. package/fixtures/cases/email-format/schema.yaml +0 -55
  290. package/fixtures/cases/fenced-link-definition/schema.yaml +0 -5
  291. package/fixtures/cases/frontmatter-schema/expected.json +0 -5
  292. package/fixtures/cases/integer-field/schema.yaml +0 -55
  293. package/fixtures/cases/interrupted-link-definition/schema.yaml +0 -1
  294. package/fixtures/cases/json-schema-constructs/schema.yaml +0 -55
  295. package/fixtures/cases/list-of-objects-closed/schema.yaml +0 -55
  296. package/fixtures/cases/list-of-objects-item/schema.yaml +0 -55
  297. package/fixtures/cases/list-size/schema.yaml +0 -55
  298. package/fixtures/cases/long-fence-link-definition/schema.yaml +0 -1
  299. package/fixtures/cases/misspelled-key/schema.yaml +0 -55
  300. package/fixtures/cases/nested-object-reference/schema.yaml +0 -32
  301. package/fixtures/cases/nested-reference/schema.yaml +0 -32
  302. package/fixtures/cases/nested-required-field/schema.yaml +0 -55
  303. package/fixtures/cases/numeric-range/schema.yaml +0 -55
  304. package/fixtures/cases/one-of-variant/schema.yaml +0 -55
  305. package/fixtures/cases/other-room-reference/schema.yaml +0 -32
  306. package/fixtures/cases/paragraph-link-definition/schema.yaml +0 -1
  307. package/fixtures/cases/prototype-field/schema.yaml +0 -5
  308. package/fixtures/cases/quoted-link-definition/schema.yaml +0 -1
  309. package/fixtures/cases/shortcut-reference-link/schema.yaml +0 -5
  310. package/fixtures/cases/string-length/schema.yaml +0 -55
  311. package/fixtures/cases/truncated-link-definition/schema.yaml +0 -1
  312. package/fixtures/cases/undeclared-field/schema.yaml +0 -5
  313. package/fixtures/cases/unresolved-link/schema.yaml +0 -5
  314. package/fixtures/cases/wide-item-fence-link/schema.yaml +0 -1
  315. package/fixtures/division.json +0 -454
  316. package/fixtures/projection.json +0 -358
  317. /package/fixtures/cases/{frontmatter-schema → block-scalar-frontmatter}/context.json +0 -0
  318. /package/fixtures/cases/{frontmatter-schema/schema.yaml → unknown-type/schema.md} +0 -0
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,5 +0,0 @@
1
- task:
2
- properties:
3
- title: { type: string }
4
- description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
5
- required: [ title, description ]
@@ -1,5 +0,0 @@
1
- {
2
- "verdict": "refuse",
3
- "location": "line 1",
4
- "rule": "schema-yaml"
5
- }
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,32 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- depot: { type: string, reference: place }
7
- required: [city]
8
- company:
9
- properties:
10
- name: { type: string }
11
- product:
12
- properties:
13
- name: { type: string }
14
- place:
15
- properties:
16
- name: { type: string }
17
- deal:
18
- type: object
19
- properties:
20
- title: { type: string }
21
- company: { type: string, reference: company }
22
- shipping: { $ref: '#/$defs/address' }
23
- lines:
24
- type: array
25
- items:
26
- type: object
27
- properties:
28
- product: { type: string, reference: product }
29
- quantity: { type: integer, minimum: 1 }
30
- required: [product, quantity]
31
- contract: { type: string, reference: attachment }
32
- required: [title, company]
@@ -1,32 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- depot: { type: string, reference: place }
7
- required: [city]
8
- company:
9
- properties:
10
- name: { type: string }
11
- product:
12
- properties:
13
- name: { type: string }
14
- place:
15
- properties:
16
- name: { type: string }
17
- deal:
18
- type: object
19
- properties:
20
- title: { type: string }
21
- company: { type: string, reference: company }
22
- shipping: { $ref: '#/$defs/address' }
23
- lines:
24
- type: array
25
- items:
26
- type: object
27
- properties:
28
- product: { type: string, reference: product }
29
- quantity: { type: integer, minimum: 1 }
30
- required: [product, quantity]
31
- contract: { type: string, reference: attachment }
32
- required: [title, company]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,55 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- country: { type: string, pattern: '^[A-Z]{2}$' }
7
- required: [ city ]
8
- company:
9
- properties:
10
- name: { type: string }
11
- deal:
12
- type: object
13
- properties:
14
- title: { type: string, minLength: 1, maxLength: 40 }
15
- company: { type: string, reference: company }
16
- stage: { enum: [ lead, proposal, won, lost ], default: lead }
17
- amount: { type: integer, minimum: 0 }
18
- probability: { type: number, minimum: 0, maximum: 1 }
19
- open: { type: boolean }
20
- closes_at: { type: string, format: date-time }
21
- contact_email: { type: string, format: email }
22
- note: { type: [ string, 'null' ] }
23
- shipping: { $ref: '#/$defs/address' }
24
- tags: { type: array, items: { type: string }, maxItems: 3 }
25
- lines:
26
- type: array
27
- items:
28
- type: object
29
- properties:
30
- product: { type: string }
31
- quantity: { type: integer, minimum: 1 }
32
- required: [ product, quantity ]
33
- blocks:
34
- type: array
35
- items:
36
- oneOf:
37
- - properties:
38
- kind: { const: paragraph }
39
- text: { type: string }
40
- required: [ kind, text ]
41
- - properties:
42
- kind: { const: quiz }
43
- question: { type: string }
44
- required: [ kind, question ]
45
- attributes:
46
- type: object
47
- additionalProperties: { type: string }
48
- description: { type: string, contentMediaType: text/markdown, title: Description }
49
- required: [ title, company, stage ]
50
- if:
51
- properties:
52
- stage: { const: won }
53
- required: [ stage ]
54
- then:
55
- required: [ amount ]
@@ -1,32 +0,0 @@
1
- $defs:
2
- address:
3
- type: object
4
- properties:
5
- city: { type: string }
6
- depot: { type: string, reference: place }
7
- required: [city]
8
- company:
9
- properties:
10
- name: { type: string }
11
- product:
12
- properties:
13
- name: { type: string }
14
- place:
15
- properties:
16
- name: { type: string }
17
- deal:
18
- type: object
19
- properties:
20
- title: { type: string }
21
- company: { type: string, reference: company }
22
- shipping: { $ref: '#/$defs/address' }
23
- lines:
24
- type: array
25
- items:
26
- type: object
27
- properties:
28
- product: { type: string, reference: product }
29
- quantity: { type: integer, minimum: 1 }
30
- required: [product, quantity]
31
- contract: { type: string, reference: attachment }
32
- required: [title, company]
@@ -1,5 +0,0 @@
1
- task:
2
- properties:
3
- title: { type: string }
4
- description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
5
- required: [ title, description ]
@@ -1 +0,0 @@
1
- note: {}