@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.
- package/API.md +94 -115
- package/README.md +15 -14
- package/dist/built-in.d.ts.map +1 -1
- package/dist/built-in.js +10 -1
- package/dist/definition.d.ts +10 -2
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +97 -19
- package/dist/document.d.ts +3 -2
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +113 -71
- package/dist/event.d.ts +5 -8
- package/dist/event.d.ts.map +1 -1
- package/dist/event.js +4 -3
- package/dist/facts.d.ts.map +1 -1
- package/dist/facts.js +8 -4
- package/dist/fields.d.ts +1 -1
- package/dist/fields.d.ts.map +1 -1
- package/dist/fields.js +2 -2
- package/dist/folders.d.ts +5 -0
- package/dist/folders.d.ts.map +1 -0
- package/dist/folders.js +19 -0
- package/dist/house-model.d.ts +283 -20
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +147 -14
- package/dist/house-references/patterns.d.ts +5 -1
- package/dist/house-references/patterns.d.ts.map +1 -1
- package/dist/house-references/patterns.js +8 -1
- package/dist/index.d.ts +21 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -12
- package/dist/indexed.d.ts +10 -0
- package/dist/indexed.d.ts.map +1 -0
- package/dist/indexed.js +63 -0
- package/dist/kinds.d.ts +9 -1
- package/dist/kinds.d.ts.map +1 -1
- package/dist/kinds.js +68 -0
- package/dist/markdown.d.ts +0 -4
- package/dist/markdown.d.ts.map +1 -1
- package/dist/markdown.js +1 -34
- package/dist/moment.d.ts +9 -0
- package/dist/moment.d.ts.map +1 -0
- package/dist/moment.js +40 -0
- package/dist/not-ready.d.ts +2 -0
- package/dist/not-ready.d.ts.map +1 -0
- package/dist/not-ready.js +5 -0
- package/dist/paths.d.ts +6 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +33 -3
- package/dist/query/language.d.ts +4 -1
- package/dist/query/language.d.ts.map +1 -1
- package/dist/query/language.js +8 -7
- package/dist/query/match.d.ts +1 -1
- package/dist/query/match.d.ts.map +1 -1
- package/dist/query/match.js +3 -24
- package/dist/query/rows.d.ts +6 -1
- package/dist/query/rows.d.ts.map +1 -1
- package/dist/query/rows.js +37 -8
- package/dist/query/sql.d.ts +10 -1
- package/dist/query/sql.d.ts.map +1 -1
- package/dist/query/sql.js +22 -3
- package/dist/query/walk.d.ts +73 -0
- package/dist/query/walk.d.ts.map +1 -0
- package/dist/query/walk.js +277 -0
- package/dist/references.d.ts +2 -2
- package/dist/references.d.ts.map +1 -1
- package/dist/references.js +1 -1
- package/dist/reserved.d.ts +1 -1
- package/dist/reserved.d.ts.map +1 -1
- package/dist/reserved.js +15 -6
- package/dist/room-types.d.ts +2 -1
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +16 -11
- package/dist/schema.d.ts +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +6 -7
- package/dist/types.d.ts +11 -31
- package/dist/types.d.ts.map +1 -1
- package/dist/validate.d.ts +7 -3
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +108 -46
- package/dist/view.d.ts +5 -0
- package/dist/view.d.ts.map +1 -0
- package/dist/view.js +27 -0
- package/dist/yaml.d.ts +7 -5
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +154 -33
- package/fixtures/README.md +65 -57
- package/fixtures/cases/absent-link-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/absent-optional-field/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/absolute-link/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-any-file/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-outside/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-any-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-document-collision/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-image-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-link-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-link-outside-collection/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-prototype-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-typed-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/block-scalar-frontmatter/expected.json +1 -0
- package/fixtures/cases/block-scalar-frontmatter/library/notes/literal.md +17 -0
- package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
- package/fixtures/cases/boolean-field/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/{duplicate-link-definition/schema.yaml → bracketed-link-definition/schema.md} +2 -0
- package/fixtures/cases/closed-nested-object/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/composed-root-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/conditional-long-text/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/cross-room-link/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/cross-room-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/date-time-format/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/declared-binary-links/schema.md +3 -0
- package/fixtures/cases/default-unfilled/schema.md +57 -0
- package/fixtures/cases/defs-pattern/schema.md +57 -0
- package/fixtures/cases/dependent-rule/schema.md +57 -0
- package/fixtures/cases/{bracketed-link-definition/schema.yaml → duplicate-link-definition/schema.md} +2 -0
- package/fixtures/cases/email-format/schema.md +57 -0
- package/fixtures/cases/equal-labels/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/fenced-link-definition/schema.md +7 -0
- package/fixtures/cases/field-enum/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/context.json +1 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/expected.json +1 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/host.md +13 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/map.md +24 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/open.md +13 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/schema.md +9 -0
- package/fixtures/cases/folder-keeps-a-record/context.json +1 -0
- package/fixtures/cases/folder-keeps-a-record/expected.json +1 -0
- package/fixtures/cases/folder-keeps-a-record/library/tickets/2026-11-16-d_1.r.md +13 -0
- package/fixtures/cases/folder-keeps-a-record/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-keeps-a-record/schema.md +9 -0
- package/fixtures/cases/folder-names-no-type-of-the-schema/context.json +1 -0
- package/fixtures/cases/folder-names-no-type-of-the-schema/expected.json +5 -0
- package/fixtures/cases/folder-names-no-type-of-the-schema/schema.md +7 -0
- package/fixtures/cases/folder-nearer-entry-types-a-document/context.json +1 -0
- package/fixtures/cases/folder-nearer-entry-types-a-document/expected.json +6 -0
- package/fixtures/cases/folder-nearer-entry-types-a-document/library/tickets/archive/2025/old.md +1 -0
- package/fixtures/cases/folder-nearer-entry-types-a-document/schema.md +15 -0
- package/fixtures/cases/folder-refuses-a-declared-any/context.json +1 -0
- package/fixtures/cases/folder-refuses-a-declared-any/expected.json +6 -0
- package/fixtures/cases/folder-refuses-a-declared-any/library/tickets/door.md +5 -0
- package/fixtures/cases/folder-refuses-a-declared-any/schema.md +9 -0
- package/fixtures/cases/folder-refuses-another-declared-type/context.json +1 -0
- package/fixtures/cases/folder-refuses-another-declared-type/expected.json +6 -0
- package/fixtures/cases/folder-refuses-another-declared-type/library/tickets/door.md +5 -0
- package/fixtures/cases/folder-refuses-another-declared-type/schema.md +12 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/context.json +1 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/expected.json +1 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/notes/plan.md +7 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/tickets/gate.md +7 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/schema.md +13 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/context.json +1 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/expected.json +6 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/library/tickets/2026/gate.md +1 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/schema.md +9 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/context.json +1 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/expected.json +7 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/schema.md +9 -0
- package/fixtures/cases/folder-under-a-reserved-name/context.json +1 -0
- package/fixtures/cases/folder-under-a-reserved-name/expected.json +5 -0
- package/fixtures/cases/folder-under-a-reserved-name/schema.md +7 -0
- package/fixtures/cases/folder-without-a-trailing-slash/context.json +1 -0
- package/fixtures/cases/folder-without-a-trailing-slash/expected.json +5 -0
- package/fixtures/cases/folder-without-a-trailing-slash/schema.md +7 -0
- package/fixtures/cases/frontmatter-construct/context.json +1 -0
- package/fixtures/cases/frontmatter-construct/expected.json +7 -0
- package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
- package/fixtures/cases/integer-field/schema.md +57 -0
- package/fixtures/cases/interrupted-link-definition/schema.md +3 -0
- package/fixtures/cases/json-schema-constructs/schema.md +57 -0
- package/fixtures/cases/labels-in-the-rooms-language/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/lazy-list-item/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/link-into-a-reserved-name/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-item-enum/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-item-kind/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-items/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-of-objects-closed/schema.md +57 -0
- package/fixtures/cases/list-of-objects-item/schema.md +57 -0
- package/fixtures/cases/list-of-objects-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-reference-path/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-reference-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-size/schema.md +57 -0
- package/fixtures/cases/long-fence-link-definition/schema.md +3 -0
- package/fixtures/cases/long-value-past-six-levels/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/malformed-definition/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/malformed-list/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/member-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/member-on-another-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/missing-required-field/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/misspelled-key/schema.md +57 -0
- package/fixtures/cases/name-not-a-string/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/nested-defs/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/nested-object-reference/schema.md +34 -0
- package/fixtures/cases/nested-reference/schema.md +34 -0
- package/fixtures/cases/nested-required-field/schema.md +57 -0
- package/fixtures/cases/numeric-range/schema.md +57 -0
- package/fixtures/cases/one-key-two-labels/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/one-key-two-types/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/one-of-variant/schema.md +57 -0
- package/fixtures/cases/other-room-reference/schema.md +34 -0
- package/fixtures/cases/paragraph-link-definition/schema.md +3 -0
- package/fixtures/cases/prototype-field/schema.md +7 -0
- package/fixtures/cases/quoted-link-definition/schema.md +3 -0
- package/fixtures/cases/reference-into-a-reserved-name/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
- package/fixtures/cases/{referenced-missing-file/schema.yaml → reference-to-any-file-name/schema.md} +2 -0
- package/fixtures/cases/referenced-missing-file/schema.md +12 -0
- package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
- package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/schema.md +12 -0
- package/fixtures/cases/remote-ref/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/schema-body-ignored/context.json +1 -0
- package/fixtures/cases/schema-body-ignored/expected.json +1 -0
- package/fixtures/cases/schema-body-ignored/schema.md +9 -0
- package/fixtures/cases/schema-type-named-folders/context.json +1 -0
- package/fixtures/cases/schema-type-named-folders/expected.json +5 -0
- package/fixtures/cases/schema-type-named-folders/schema.md +5 -0
- package/fixtures/cases/schema-type-named-type/context.json +1 -0
- package/fixtures/cases/schema-type-named-type/expected.json +5 -0
- package/fixtures/cases/{unknown-type/schema.yaml → schema-type-named-type/schema.md} +3 -1
- package/fixtures/cases/second-member-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/sections-keyword-refused/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/shortcut-reference-link/schema.md +7 -0
- package/fixtures/cases/string-length/schema.md +57 -0
- package/fixtures/cases/submission-keys/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/text-field-kind/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/thematic-break-ends-the-values/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/truncated-link-definition/schema.md +3 -0
- package/fixtures/cases/typed-path-names-another-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/typed-path-names-its-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/typed-path-names-no-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/types-folder-content/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/undeclared-field/schema.md +7 -0
- package/fixtures/cases/unevaluated-items-closed/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unique-in-app-schema/context.json +1 -0
- package/fixtures/cases/unique-in-app-schema/expected.json +5 -0
- package/fixtures/cases/unique-in-app-schema/schema.yaml +7 -0
- package/fixtures/cases/unique-indexed-field/context.json +1 -0
- package/fixtures/cases/unique-indexed-field/expected.json +1 -0
- package/fixtures/cases/unique-indexed-field/library/tickets/first.md +8 -0
- package/fixtures/cases/unique-indexed-field/library/tickets/second.md +8 -0
- package/fixtures/cases/unique-indexed-field/schema.md +9 -0
- package/fixtures/cases/unique-off-indexed-field/context.json +1 -0
- package/fixtures/cases/unique-off-indexed-field/expected.json +5 -0
- package/fixtures/cases/unique-off-indexed-field/schema.md +9 -0
- package/fixtures/cases/unlisted-reference-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-checks-its-fields/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-names-a-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-reads-its-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-without-a-body/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unresolved-link/schema.md +7 -0
- package/fixtures/cases/valid-typed-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/wide-item-fence-link/schema.md +3 -0
- package/fixtures/forms.json +24 -0
- package/fixtures/preamble.json +4 -4
- package/fixtures/queries.json +1172 -2
- package/fixtures/references.json +15 -0
- package/package.json +2 -2
- package/dist/divide.d.ts +0 -3
- package/dist/divide.d.ts.map +0 -1
- package/dist/divide.js +0 -321
- package/dist/project.d.ts +0 -22
- package/dist/project.d.ts.map +0 -1
- package/dist/project.js +0 -101
- package/fixtures/cases/declared-binary-links/schema.yaml +0 -1
- package/fixtures/cases/default-unfilled/schema.yaml +0 -55
- package/fixtures/cases/defs-pattern/schema.yaml +0 -55
- package/fixtures/cases/dependent-rule/schema.yaml +0 -55
- package/fixtures/cases/email-format/schema.yaml +0 -55
- package/fixtures/cases/fenced-link-definition/schema.yaml +0 -5
- package/fixtures/cases/frontmatter-schema/expected.json +0 -5
- package/fixtures/cases/integer-field/schema.yaml +0 -55
- package/fixtures/cases/interrupted-link-definition/schema.yaml +0 -1
- package/fixtures/cases/json-schema-constructs/schema.yaml +0 -55
- package/fixtures/cases/list-of-objects-closed/schema.yaml +0 -55
- package/fixtures/cases/list-of-objects-item/schema.yaml +0 -55
- package/fixtures/cases/list-size/schema.yaml +0 -55
- package/fixtures/cases/long-fence-link-definition/schema.yaml +0 -1
- package/fixtures/cases/misspelled-key/schema.yaml +0 -55
- package/fixtures/cases/nested-object-reference/schema.yaml +0 -32
- package/fixtures/cases/nested-reference/schema.yaml +0 -32
- package/fixtures/cases/nested-required-field/schema.yaml +0 -55
- package/fixtures/cases/numeric-range/schema.yaml +0 -55
- package/fixtures/cases/one-of-variant/schema.yaml +0 -55
- package/fixtures/cases/other-room-reference/schema.yaml +0 -32
- package/fixtures/cases/paragraph-link-definition/schema.yaml +0 -1
- package/fixtures/cases/prototype-field/schema.yaml +0 -5
- package/fixtures/cases/quoted-link-definition/schema.yaml +0 -1
- package/fixtures/cases/shortcut-reference-link/schema.yaml +0 -5
- package/fixtures/cases/string-length/schema.yaml +0 -55
- package/fixtures/cases/truncated-link-definition/schema.yaml +0 -1
- package/fixtures/cases/undeclared-field/schema.yaml +0 -5
- package/fixtures/cases/unresolved-link/schema.yaml +0 -5
- package/fixtures/cases/wide-item-fence-link/schema.yaml +0 -1
- package/fixtures/division.json +0 -454
- package/fixtures/projection.json +0 -358
- /package/fixtures/cases/{frontmatter-schema → block-scalar-frontmatter}/context.json +0 -0
- /package/fixtures/cases/{frontmatter-schema/schema.yaml → unknown-type/schema.md} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
$defs:
|
|
3
|
+
address:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
city: { type: string }
|
|
7
|
+
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
8
|
+
required: [ city ]
|
|
9
|
+
company:
|
|
10
|
+
properties:
|
|
11
|
+
name: { type: string }
|
|
12
|
+
deal:
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
title: { type: string, minLength: 1, maxLength: 40 }
|
|
16
|
+
company: { type: string, reference: company }
|
|
17
|
+
stage: { enum: [ lead, proposal, won, lost ], default: lead }
|
|
18
|
+
amount: { type: integer, minimum: 0 }
|
|
19
|
+
probability: { type: number, minimum: 0, maximum: 1 }
|
|
20
|
+
open: { type: boolean }
|
|
21
|
+
closes_at: { type: string, format: date-time }
|
|
22
|
+
contact_email: { type: string, format: email }
|
|
23
|
+
note: { type: [ string, 'null' ] }
|
|
24
|
+
shipping: { $ref: '#/$defs/address' }
|
|
25
|
+
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
26
|
+
lines:
|
|
27
|
+
type: array
|
|
28
|
+
items:
|
|
29
|
+
type: object
|
|
30
|
+
properties:
|
|
31
|
+
product: { type: string }
|
|
32
|
+
quantity: { type: integer, minimum: 1 }
|
|
33
|
+
required: [ product, quantity ]
|
|
34
|
+
blocks:
|
|
35
|
+
type: array
|
|
36
|
+
items:
|
|
37
|
+
oneOf:
|
|
38
|
+
- properties:
|
|
39
|
+
kind: { const: paragraph }
|
|
40
|
+
text: { type: string }
|
|
41
|
+
required: [ kind, text ]
|
|
42
|
+
- properties:
|
|
43
|
+
kind: { const: quiz }
|
|
44
|
+
question: { type: string }
|
|
45
|
+
required: [ kind, question ]
|
|
46
|
+
attributes:
|
|
47
|
+
type: object
|
|
48
|
+
additionalProperties: { type: string }
|
|
49
|
+
description: { type: string, contentMediaType: text/markdown, title: Description }
|
|
50
|
+
required: [ title, company, stage ]
|
|
51
|
+
if:
|
|
52
|
+
properties:
|
|
53
|
+
stage: { const: won }
|
|
54
|
+
required: [ stage ]
|
|
55
|
+
then:
|
|
56
|
+
required: [ amount ]
|
|
57
|
+
---
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
$defs:
|
|
3
|
+
address:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
city: { type: string }
|
|
7
|
+
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
8
|
+
required: [ city ]
|
|
9
|
+
company:
|
|
10
|
+
properties:
|
|
11
|
+
name: { type: string }
|
|
12
|
+
deal:
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
title: { type: string, minLength: 1, maxLength: 40 }
|
|
16
|
+
company: { type: string, reference: company }
|
|
17
|
+
stage: { enum: [ lead, proposal, won, lost ], default: lead }
|
|
18
|
+
amount: { type: integer, minimum: 0 }
|
|
19
|
+
probability: { type: number, minimum: 0, maximum: 1 }
|
|
20
|
+
open: { type: boolean }
|
|
21
|
+
closes_at: { type: string, format: date-time }
|
|
22
|
+
contact_email: { type: string, format: email }
|
|
23
|
+
note: { type: [ string, 'null' ] }
|
|
24
|
+
shipping: { $ref: '#/$defs/address' }
|
|
25
|
+
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
26
|
+
lines:
|
|
27
|
+
type: array
|
|
28
|
+
items:
|
|
29
|
+
type: object
|
|
30
|
+
properties:
|
|
31
|
+
product: { type: string }
|
|
32
|
+
quantity: { type: integer, minimum: 1 }
|
|
33
|
+
required: [ product, quantity ]
|
|
34
|
+
blocks:
|
|
35
|
+
type: array
|
|
36
|
+
items:
|
|
37
|
+
oneOf:
|
|
38
|
+
- properties:
|
|
39
|
+
kind: { const: paragraph }
|
|
40
|
+
text: { type: string }
|
|
41
|
+
required: [ kind, text ]
|
|
42
|
+
- properties:
|
|
43
|
+
kind: { const: quiz }
|
|
44
|
+
question: { type: string }
|
|
45
|
+
required: [ kind, question ]
|
|
46
|
+
attributes:
|
|
47
|
+
type: object
|
|
48
|
+
additionalProperties: { type: string }
|
|
49
|
+
description: { type: string, contentMediaType: text/markdown, title: Description }
|
|
50
|
+
required: [ title, company, stage ]
|
|
51
|
+
if:
|
|
52
|
+
properties:
|
|
53
|
+
stage: { const: won }
|
|
54
|
+
required: [ stage ]
|
|
55
|
+
then:
|
|
56
|
+
required: [ amount ]
|
|
57
|
+
---
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
$defs:
|
|
3
|
+
address:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
city: { type: string }
|
|
7
|
+
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
8
|
+
required: [ city ]
|
|
9
|
+
company:
|
|
10
|
+
properties:
|
|
11
|
+
name: { type: string }
|
|
12
|
+
deal:
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
title: { type: string, minLength: 1, maxLength: 40 }
|
|
16
|
+
company: { type: string, reference: company }
|
|
17
|
+
stage: { enum: [ lead, proposal, won, lost ], default: lead }
|
|
18
|
+
amount: { type: integer, minimum: 0 }
|
|
19
|
+
probability: { type: number, minimum: 0, maximum: 1 }
|
|
20
|
+
open: { type: boolean }
|
|
21
|
+
closes_at: { type: string, format: date-time }
|
|
22
|
+
contact_email: { type: string, format: email }
|
|
23
|
+
note: { type: [ string, 'null' ] }
|
|
24
|
+
shipping: { $ref: '#/$defs/address' }
|
|
25
|
+
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
26
|
+
lines:
|
|
27
|
+
type: array
|
|
28
|
+
items:
|
|
29
|
+
type: object
|
|
30
|
+
properties:
|
|
31
|
+
product: { type: string }
|
|
32
|
+
quantity: { type: integer, minimum: 1 }
|
|
33
|
+
required: [ product, quantity ]
|
|
34
|
+
blocks:
|
|
35
|
+
type: array
|
|
36
|
+
items:
|
|
37
|
+
oneOf:
|
|
38
|
+
- properties:
|
|
39
|
+
kind: { const: paragraph }
|
|
40
|
+
text: { type: string }
|
|
41
|
+
required: [ kind, text ]
|
|
42
|
+
- properties:
|
|
43
|
+
kind: { const: quiz }
|
|
44
|
+
question: { type: string }
|
|
45
|
+
required: [ kind, question ]
|
|
46
|
+
attributes:
|
|
47
|
+
type: object
|
|
48
|
+
additionalProperties: { type: string }
|
|
49
|
+
description: { type: string, contentMediaType: text/markdown, title: Description }
|
|
50
|
+
required: [ title, company, stage ]
|
|
51
|
+
if:
|
|
52
|
+
properties:
|
|
53
|
+
stage: { const: won }
|
|
54
|
+
required: [ stage ]
|
|
55
|
+
then:
|
|
56
|
+
required: [ amount ]
|
|
57
|
+
---
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
$defs:
|
|
3
|
+
address:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
city: { type: string }
|
|
7
|
+
depot: { type: string, reference: place }
|
|
8
|
+
required: [city]
|
|
9
|
+
company:
|
|
10
|
+
properties:
|
|
11
|
+
name: { type: string }
|
|
12
|
+
product:
|
|
13
|
+
properties:
|
|
14
|
+
name: { type: string }
|
|
15
|
+
place:
|
|
16
|
+
properties:
|
|
17
|
+
name: { type: string }
|
|
18
|
+
deal:
|
|
19
|
+
type: object
|
|
20
|
+
properties:
|
|
21
|
+
title: { type: string }
|
|
22
|
+
company: { type: string, reference: company }
|
|
23
|
+
shipping: { $ref: '#/$defs/address' }
|
|
24
|
+
lines:
|
|
25
|
+
type: array
|
|
26
|
+
items:
|
|
27
|
+
type: object
|
|
28
|
+
properties:
|
|
29
|
+
product: { type: string, reference: product }
|
|
30
|
+
quantity: { type: integer, minimum: 1 }
|
|
31
|
+
required: [product, quantity]
|
|
32
|
+
contract: { type: string, reference: attachment }
|
|
33
|
+
required: [title, company]
|
|
34
|
+
---
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "verdict": "accept" }
|
package/fixtures/cases/{referenced-missing-file/schema.yaml → reference-to-any-file-name/schema.md}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
---
|
|
1
2
|
person:
|
|
2
3
|
properties:
|
|
3
4
|
name: { type: string }
|
|
@@ -8,3 +9,4 @@ task:
|
|
|
8
9
|
owner: { type: string, reference: person }
|
|
9
10
|
description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
|
|
10
11
|
required: [ title, owner, description ]
|
|
12
|
+
---
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
person:
|
|
3
|
+
properties:
|
|
4
|
+
name: { type: string }
|
|
5
|
+
required: [ name ]
|
|
6
|
+
task:
|
|
7
|
+
properties:
|
|
8
|
+
title: { type: string }
|
|
9
|
+
owner: { type: string, reference: person }
|
|
10
|
+
description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
|
|
11
|
+
required: [ title, owner, description ]
|
|
12
|
+
---
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
person:
|
|
3
|
+
properties:
|
|
4
|
+
name: { type: string }
|
|
5
|
+
required: [ name ]
|
|
6
|
+
task:
|
|
7
|
+
properties:
|
|
8
|
+
title: { type: string }
|
|
9
|
+
owner: { type: string, reference: person }
|
|
10
|
+
description: { type: string, contentMediaType: text/markdown, minLength: 1, title: Description }
|
|
11
|
+
required: [ title, owner, description ]
|
|
12
|
+
---
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "verdict": "accept" }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
$defs:
|
|
3
|
+
address:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
city: { type: string }
|
|
7
|
+
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
8
|
+
required: [ city ]
|
|
9
|
+
company:
|
|
10
|
+
properties:
|
|
11
|
+
name: { type: string }
|
|
12
|
+
deal:
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
title: { type: string, minLength: 1, maxLength: 40 }
|
|
16
|
+
company: { type: string, reference: company }
|
|
17
|
+
stage: { enum: [ lead, proposal, won, lost ], default: lead }
|
|
18
|
+
amount: { type: integer, minimum: 0 }
|
|
19
|
+
probability: { type: number, minimum: 0, maximum: 1 }
|
|
20
|
+
open: { type: boolean }
|
|
21
|
+
closes_at: { type: string, format: date-time }
|
|
22
|
+
contact_email: { type: string, format: email }
|
|
23
|
+
note: { type: [ string, 'null' ] }
|
|
24
|
+
shipping: { $ref: '#/$defs/address' }
|
|
25
|
+
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
26
|
+
lines:
|
|
27
|
+
type: array
|
|
28
|
+
items:
|
|
29
|
+
type: object
|
|
30
|
+
properties:
|
|
31
|
+
product: { type: string }
|
|
32
|
+
quantity: { type: integer, minimum: 1 }
|
|
33
|
+
required: [ product, quantity ]
|
|
34
|
+
blocks:
|
|
35
|
+
type: array
|
|
36
|
+
items:
|
|
37
|
+
oneOf:
|
|
38
|
+
- properties:
|
|
39
|
+
kind: { const: paragraph }
|
|
40
|
+
text: { type: string }
|
|
41
|
+
required: [ kind, text ]
|
|
42
|
+
- properties:
|
|
43
|
+
kind: { const: quiz }
|
|
44
|
+
question: { type: string }
|
|
45
|
+
required: [ kind, question ]
|
|
46
|
+
attributes:
|
|
47
|
+
type: object
|
|
48
|
+
additionalProperties: { type: string }
|
|
49
|
+
description: { type: string, contentMediaType: text/markdown, title: Description }
|
|
50
|
+
required: [ title, company, stage ]
|
|
51
|
+
if:
|
|
52
|
+
properties:
|
|
53
|
+
stage: { const: won }
|
|
54
|
+
required: [ stage ]
|
|
55
|
+
then:
|
|
56
|
+
required: [ amount ]
|
|
57
|
+
---
|