yarramate 1.23.2 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/visual/protocol-contract.d.ts +19 -0
- package/dist/adapters/visual/session-server.js +16 -4
- package/dist/adapters/visual/wire.d.ts +9 -1
- package/dist/brief.js +19 -40
- package/dist/layout-mode.d.ts +56 -0
- package/dist/layout-mode.js +67 -0
- package/dist/notation/archimate.d.ts +6 -1
- package/dist/notation/archimate.js +9 -4
- package/dist/projection.d.ts +20 -1
- package/dist/projection.js +9 -0
- package/dist/relationship-reading.d.ts +28 -0
- package/dist/relationship-reading.js +52 -0
- package/dist/schema-validators.generated.js +36 -23
- package/dist/visual-app/assets/elk-worker.min-D8OVqK8T.js +22 -0
- package/dist/visual-app/assets/elk.bundled-CLux5E_P.js +24 -0
- package/dist/visual-app/assets/index-CJVWkpLt.css +1 -0
- package/dist/visual-app/assets/index-DGkU2CSB.js +369 -0
- package/dist/visual-app/index.html +2 -2
- package/dist/visual-app-lib/editor.js +39420 -38659
- package/dist/visual-app-lib/styles.css +1 -1
- package/dist/visual-app-lib/types/adapters/visual/protocol-contract.d.ts +19 -0
- package/dist/visual-app-lib/types/adapters/visual/wire.d.ts +9 -1
- package/dist/visual-app-lib/types/layout-mode.d.ts +56 -0
- package/dist/visual-app-lib/types/notation/archimate.d.ts +6 -1
- package/dist/visual-app-lib/types/projection.d.ts +20 -1
- package/dist/visual-app-lib/types/relationship-reading.d.ts +28 -0
- package/dist/visual-app-lib/types/visual-app/edge-routes.d.ts +63 -0
- package/dist/visual-app-lib/types/visual-app/elk-layout.d.ts +150 -0
- package/dist/visual-app-lib/types/visual-app/graph-canvas.d.ts +44 -6
- package/dist/visual-app-lib/types/visual-app/kind-icons.d.ts +1 -1
- package/dist/visual-app-lib/types/visual-app/layout-controls.d.ts +29 -0
- package/dist/visual-app-lib/types/visual-app/mount.d.ts +12 -0
- package/dist/visual-app-lib/types/visual-app/query-fields.d.ts +10 -8
- package/dist/visual-app-lib/types/visual-app/query-panel.d.ts +5 -3
- package/dist/visual-app-lib/types/visual-app/save-view.d.ts +30 -17
- package/dist/visual-app-lib/types/visual-app/style-presets.d.ts +39 -0
- package/dist/visual-app-lib/types/visual-app/workspace-state.d.ts +22 -4
- package/docs/CONSUMING-YARRAMATE.md +9 -0
- package/package.json +1 -2
- package/schema/yarramate-projection-result.schema.json +4 -1
- package/schema/yarramate-projection.schema.json +6 -1
- package/schema/yarramate-visual-event.schema.json +10 -0
- package/schema/yarramate-visual-layout.schema.json +31 -0
- package/dist/visual-app/assets/index-CnldeUHL.css +0 -1
- package/dist/visual-app/assets/index-CyKofiEE.js +0 -394
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// file and not a runtime one; the two pure helpers imported below are
|
|
10
10
|
// all the runtime still takes from ajv.
|
|
11
11
|
//
|
|
12
|
-
// schema/ sha256:
|
|
12
|
+
// schema/ sha256: 047e27f42a2bbeaf186894dad22fea47af390a5f299667cca2e70b20873fbf05
|
|
13
13
|
import ajvRuntime0Module from 'ajv/dist/runtime/ucs2length.js';
|
|
14
14
|
const ajvRuntime0 = ajvRuntime0Module.default ?? ajvRuntime0Module;
|
|
15
15
|
import ajvRuntime1Module from 'ajv/dist/runtime/equal.js';
|
|
@@ -4476,7 +4476,7 @@ else {
|
|
|
4476
4476
|
} validate61.errors = vErrors; return errors === 0; }
|
|
4477
4477
|
validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4478
4478
|
export const validateProjection = validate62;
|
|
4479
|
-
const schema113 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://yarramate.org/schema/projection/v1", "title": "YarraMate semantic projection", "type": "object", "additionalProperties": false, "required": ["format", "id", "version", "query"], "properties": { "format": { "const": "yarramate/projection/v1" }, "id": { "$ref": "#/$defs/id" }, "version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+$" }, "query": { "$ref": "#/$defs/query" }, "presentation": { "$ref": "#/$defs/presentation" } }, "$defs": { "query": { "type": "object", "additionalProperties": false, "properties": { "subjects": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "instances": { "description": "Pattern instances whose CONTENTS this query selects (#473, ADR 0144). Each id names an instance, and the facet selects that instance together with everything the fold tree would draw inside it: the same closure `presentation.fold: \"instances\"` collapses into one box, read through this view's own `nesting`. This is the one facet that ADDS rather than narrows. `subjects` and `instances` are a single identity facet spelled two ways and their values combine with OR, while every other field still ANDs over the union. Naming the instance rather than hand-listing its members is what keeps a view from going stale the next time the pattern binds a slot. An id that names nothing is refused (YM921); one that names a subject which is not a pattern instance is refused separately (YM922), because a typo and a category error send an author to different places.", "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "exclude": { "description": "Subjects this query would otherwise select and the author has taken out: the exception a rule cannot state (#267, ADR 0122). Applied after every other facet and after relationship expansion, so an excluded subject is out whichever way it would have come back in. Naming a subject no facet selects is allowed and inert until the model grows into the rule.", "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "documents": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }, "kinds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/qualifiedKind" } }, "layers": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/layer" } }, "statuses": { "type": "array", "uniqueItems": true, "items": { "enum": ["planned", "current", "retired"] } }, "excludeStatuses": { "description": "Drop concepts carrying one of these lifecycle statuses while keeping concepts that declare no status at all - 'everything except retired' for viewpoint projections, where a bare statuses filter would wrongly drop unstatused actors and motivation elements.", "type": "array", "uniqueItems": true, "items": { "enum": ["planned", "current", "retired"] } }, "states": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "owners": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "constraints": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "relationshipKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/qualifiedKind" } }, "kindMatching": { "enum": ["exact", "descendants"] }, "relationships": { "enum": ["between", "connected", "none"] }, "isolatedConcepts": { "enum": ["include", "exclude"] } } }, "presentation": { "type": "object", "additionalProperties": false, "properties": { "title": { "$ref": "#/$defs/nonEmptyText" }, "description": { "$ref": "#/$defs/nonEmptyText" }, "layout": { "enum": ["layered"] }, "direction": { "enum": ["top-down", "left-right"] }, "nesting": { "type": "array", "uniqueItems": true, "items": { "enum": ["composition", "assignment"] } }, "fold": { "description": "Whether this view draws pattern instances FOLDED by default (#473). \"instances\" collapses every instance to a single node carrying its members, with the edges into and out of them lifted onto the box; \"none\", the default, draws everything. A reader opens what they want, so this says where to START rather than what may be seen. Folding reads the same containment tree nesting does, so a view declaring fold without \"assignment\" in nesting collapses less than its author probably expects; the editor says so rather than the loader refusing it, because a diagnostic has no warning severity and this is not an error.", "enum": ["instances", "none"] }, "showLifecycle": { "type": "boolean" }, "showEvidence": { "type": "boolean" }, "showOwnership": { "type": "boolean" }, "notation": { "enum": ["archimate"] }, "folder": { "type": "string", "description": "The folder this view files itself under in an editor's rail. A LABEL the author declares, never the directory the projection sits in: nest with '/' separators, and the filesystem is never consulted (ADR 0104).", "pattern": "^[^/]+(?:/[^/]+)*$", "minLength": 1 } } }, "id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "qualifiedKind": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:/[a-z][a-z0-9-]*)+@[0-9]+\\.[0-9]+#[a-z][A-Za-z0-9-]*$" }, "subjectIdentity": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "nonEmptyText": { "type": "string", "minLength": 1 }, "layer": { "enum": ["motivation", "strategy", "business", "application", "technology", "physical", "implementation", "composite"] } } };
|
|
4479
|
+
const schema113 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://yarramate.org/schema/projection/v1", "title": "YarraMate semantic projection", "type": "object", "additionalProperties": false, "required": ["format", "id", "version", "query"], "properties": { "format": { "const": "yarramate/projection/v1" }, "id": { "$ref": "#/$defs/id" }, "version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+$" }, "query": { "$ref": "#/$defs/query" }, "presentation": { "$ref": "#/$defs/presentation" } }, "$defs": { "query": { "type": "object", "additionalProperties": false, "properties": { "subjects": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "instances": { "description": "Pattern instances whose CONTENTS this query selects (#473, ADR 0144). Each id names an instance, and the facet selects that instance together with everything the fold tree would draw inside it: the same closure `presentation.fold: \"instances\"` collapses into one box, read through this view's own `nesting`. This is the one facet that ADDS rather than narrows. `subjects` and `instances` are a single identity facet spelled two ways and their values combine with OR, while every other field still ANDs over the union. Naming the instance rather than hand-listing its members is what keeps a view from going stale the next time the pattern binds a slot. An id that names nothing is refused (YM921); one that names a subject which is not a pattern instance is refused separately (YM922), because a typo and a category error send an author to different places.", "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "exclude": { "description": "Subjects this query would otherwise select and the author has taken out: the exception a rule cannot state (#267, ADR 0122). Applied after every other facet and after relationship expansion, so an excluded subject is out whichever way it would have come back in. Naming a subject no facet selects is allowed and inert until the model grows into the rule.", "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "documents": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }, "kinds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/qualifiedKind" } }, "layers": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/layer" } }, "statuses": { "type": "array", "uniqueItems": true, "items": { "enum": ["planned", "current", "retired"] } }, "excludeStatuses": { "description": "Drop concepts carrying one of these lifecycle statuses while keeping concepts that declare no status at all - 'everything except retired' for viewpoint projections, where a bare statuses filter would wrongly drop unstatused actors and motivation elements.", "type": "array", "uniqueItems": true, "items": { "enum": ["planned", "current", "retired"] } }, "states": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "owners": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "constraints": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "relationshipKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/qualifiedKind" } }, "kindMatching": { "enum": ["exact", "descendants"] }, "relationships": { "enum": ["between", "connected", "none"] }, "isolatedConcepts": { "enum": ["include", "exclude"] } } }, "presentation": { "type": "object", "additionalProperties": false, "properties": { "title": { "$ref": "#/$defs/nonEmptyText" }, "description": { "$ref": "#/$defs/nonEmptyText" }, "layout": { "description": "How the view arranges itself (ADR 0147), a ladder where each mode keeps everything below it: \"layered\" places the nodes and lets the canvas draw straight lines between them; \"routed\" also routes every edge around the nodes and reserves room for its label; \"served-by\" also layers serving, realization and specialization upward, so the served element sits above what serves it and the label reads down the page; \"bands\" also pins every element to its ArchiMate layer's band. A view that says nothing lays out \"served-by\".", "enum": ["layered", "routed", "served-by", "bands"] }, "direction": { "enum": ["top-down", "left-right"] }, "nesting": { "type": "array", "uniqueItems": true, "items": { "enum": ["composition", "assignment"] } }, "fold": { "description": "Whether this view draws pattern instances FOLDED by default (#473). \"instances\" collapses every instance to a single node carrying its members, with the edges into and out of them lifted onto the box; \"none\", the default, draws everything. A reader opens what they want, so this says where to START rather than what may be seen. Folding reads the same containment tree nesting does, so a view declaring fold without \"assignment\" in nesting collapses less than its author probably expects; the editor says so rather than the loader refusing it, because a diagnostic has no warning severity and this is not an error.", "enum": ["instances", "none"] }, "showLifecycle": { "type": "boolean" }, "showEvidence": { "type": "boolean" }, "showOwnership": { "type": "boolean" }, "showKindLabels": { "description": "Whether an unnamed relationship is labelled with its reading (\"serves\", \"served by\", \"realizes\"). Off, the line style and arrowhead alone say the kind; a named relationship keeps its name either way. On when absent.", "type": "boolean" }, "notation": { "enum": ["archimate"] }, "folder": { "type": "string", "description": "The folder this view files itself under in an editor's rail. A LABEL the author declares, never the directory the projection sits in: nest with '/' separators, and the filesystem is never consulted (ADR 0104).", "pattern": "^[^/]+(?:/[^/]+)*$", "minLength": 1 } } }, "id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "qualifiedKind": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:/[a-z][a-z0-9-]*)+@[0-9]+\\.[0-9]+#[a-z][A-Za-z0-9-]*$" }, "subjectIdentity": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "nonEmptyText": { "type": "string", "minLength": 1 }, "layer": { "enum": ["motivation", "strategy", "business", "application", "technology", "physical", "implementation", "composite"] } } };
|
|
4480
4480
|
const schema114 = { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" };
|
|
4481
4481
|
const schema115 = { "type": "object", "additionalProperties": false, "properties": { "subjects": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "instances": { "description": "Pattern instances whose CONTENTS this query selects (#473, ADR 0144). Each id names an instance, and the facet selects that instance together with everything the fold tree would draw inside it: the same closure `presentation.fold: \"instances\"` collapses into one box, read through this view's own `nesting`. This is the one facet that ADDS rather than narrows. `subjects` and `instances` are a single identity facet spelled two ways and their values combine with OR, while every other field still ANDs over the union. Naming the instance rather than hand-listing its members is what keeps a view from going stale the next time the pattern binds a slot. An id that names nothing is refused (YM921); one that names a subject which is not a pattern instance is refused separately (YM922), because a typo and a category error send an author to different places.", "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "exclude": { "description": "Subjects this query would otherwise select and the author has taken out: the exception a rule cannot state (#267, ADR 0122). Applied after every other facet and after relationship expansion, so an excluded subject is out whichever way it would have come back in. Naming a subject no facet selects is allowed and inert until the model grows into the rule.", "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "documents": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }, "kinds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/qualifiedKind" } }, "layers": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/layer" } }, "statuses": { "type": "array", "uniqueItems": true, "items": { "enum": ["planned", "current", "retired"] } }, "excludeStatuses": { "description": "Drop concepts carrying one of these lifecycle statuses while keeping concepts that declare no status at all - 'everything except retired' for viewpoint projections, where a bare statuses filter would wrongly drop unstatused actors and motivation elements.", "type": "array", "uniqueItems": true, "items": { "enum": ["planned", "current", "retired"] } }, "states": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "owners": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "constraints": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/subjectIdentity" } }, "relationshipKinds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/qualifiedKind" } }, "kindMatching": { "enum": ["exact", "descendants"] }, "relationships": { "enum": ["between", "connected", "none"] }, "isolatedConcepts": { "enum": ["include", "exclude"] } } };
|
|
4482
4482
|
const schema116 = { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" };
|
|
@@ -5314,7 +5314,7 @@ else {
|
|
|
5314
5314
|
errors++;
|
|
5315
5315
|
} validate63.errors = vErrors; return errors === 0; }
|
|
5316
5316
|
validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
5317
|
-
const schema126 = { "type": "object", "additionalProperties": false, "properties": { "title": { "$ref": "#/$defs/nonEmptyText" }, "description": { "$ref": "#/$defs/nonEmptyText" }, "layout": { "enum": ["layered"] }, "direction": { "enum": ["top-down", "left-right"] }, "nesting": { "type": "array", "uniqueItems": true, "items": { "enum": ["composition", "assignment"] } }, "fold": { "description": "Whether this view draws pattern instances FOLDED by default (#473). \"instances\" collapses every instance to a single node carrying its members, with the edges into and out of them lifted onto the box; \"none\", the default, draws everything. A reader opens what they want, so this says where to START rather than what may be seen. Folding reads the same containment tree nesting does, so a view declaring fold without \"assignment\" in nesting collapses less than its author probably expects; the editor says so rather than the loader refusing it, because a diagnostic has no warning severity and this is not an error.", "enum": ["instances", "none"] }, "showLifecycle": { "type": "boolean" }, "showEvidence": { "type": "boolean" }, "showOwnership": { "type": "boolean" }, "notation": { "enum": ["archimate"] }, "folder": { "type": "string", "description": "The folder this view files itself under in an editor's rail. A LABEL the author declares, never the directory the projection sits in: nest with '/' separators, and the filesystem is never consulted (ADR 0104).", "pattern": "^[^/]+(?:/[^/]+)*$", "minLength": 1 } } };
|
|
5317
|
+
const schema126 = { "type": "object", "additionalProperties": false, "properties": { "title": { "$ref": "#/$defs/nonEmptyText" }, "description": { "$ref": "#/$defs/nonEmptyText" }, "layout": { "description": "How the view arranges itself (ADR 0147), a ladder where each mode keeps everything below it: \"layered\" places the nodes and lets the canvas draw straight lines between them; \"routed\" also routes every edge around the nodes and reserves room for its label; \"served-by\" also layers serving, realization and specialization upward, so the served element sits above what serves it and the label reads down the page; \"bands\" also pins every element to its ArchiMate layer's band. A view that says nothing lays out \"served-by\".", "enum": ["layered", "routed", "served-by", "bands"] }, "direction": { "enum": ["top-down", "left-right"] }, "nesting": { "type": "array", "uniqueItems": true, "items": { "enum": ["composition", "assignment"] } }, "fold": { "description": "Whether this view draws pattern instances FOLDED by default (#473). \"instances\" collapses every instance to a single node carrying its members, with the edges into and out of them lifted onto the box; \"none\", the default, draws everything. A reader opens what they want, so this says where to START rather than what may be seen. Folding reads the same containment tree nesting does, so a view declaring fold without \"assignment\" in nesting collapses less than its author probably expects; the editor says so rather than the loader refusing it, because a diagnostic has no warning severity and this is not an error.", "enum": ["instances", "none"] }, "showLifecycle": { "type": "boolean" }, "showEvidence": { "type": "boolean" }, "showOwnership": { "type": "boolean" }, "showKindLabels": { "description": "Whether an unnamed relationship is labelled with its reading (\"serves\", \"served by\", \"realizes\"). Off, the line style and arrowhead alone say the kind; a named relationship keeps its name either way. On when absent.", "type": "boolean" }, "notation": { "enum": ["archimate"] }, "folder": { "type": "string", "description": "The folder this view files itself under in an editor's rail. A LABEL the author declares, never the directory the projection sits in: nest with '/' separators, and the filesystem is never consulted (ADR 0104).", "pattern": "^[^/]+(?:/[^/]+)*$", "minLength": 1 } } };
|
|
5318
5318
|
const schema127 = { "type": "string", "minLength": 1 };
|
|
5319
5319
|
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) { let vErrors = null; let errors = 0; const evaluated0 = validate65.evaluated; if (evaluated0.dynamicProps) {
|
|
5320
5320
|
evaluated0.props = undefined;
|
|
@@ -5384,7 +5384,8 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5384
5384
|
}
|
|
5385
5385
|
}
|
|
5386
5386
|
if (data.layout !== undefined) {
|
|
5387
|
-
|
|
5387
|
+
let data2 = data.layout;
|
|
5388
|
+
if (!((((data2 === "layered") || (data2 === "routed")) || (data2 === "served-by")) || (data2 === "bands"))) {
|
|
5388
5389
|
const err5 = { instancePath: instancePath + "/layout", schemaPath: "#/properties/layout/enum", keyword: "enum", params: { allowedValues: schema126.properties.layout.enum }, message: "must be equal to one of the allowed values" };
|
|
5389
5390
|
if (vErrors === null) {
|
|
5390
5391
|
vErrors = [err5];
|
|
@@ -5505,9 +5506,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5505
5506
|
errors++;
|
|
5506
5507
|
}
|
|
5507
5508
|
}
|
|
5508
|
-
if (data.
|
|
5509
|
-
if (
|
|
5510
|
-
const err14 = { instancePath: instancePath + "/
|
|
5509
|
+
if (data.showKindLabels !== undefined) {
|
|
5510
|
+
if (typeof data.showKindLabels !== "boolean") {
|
|
5511
|
+
const err14 = { instancePath: instancePath + "/showKindLabels", schemaPath: "#/properties/showKindLabels/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
5511
5512
|
if (vErrors === null) {
|
|
5512
5513
|
vErrors = [err14];
|
|
5513
5514
|
}
|
|
@@ -5517,49 +5518,61 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5517
5518
|
errors++;
|
|
5518
5519
|
}
|
|
5519
5520
|
}
|
|
5521
|
+
if (data.notation !== undefined) {
|
|
5522
|
+
if (!(data.notation === "archimate")) {
|
|
5523
|
+
const err15 = { instancePath: instancePath + "/notation", schemaPath: "#/properties/notation/enum", keyword: "enum", params: { allowedValues: schema126.properties.notation.enum }, message: "must be equal to one of the allowed values" };
|
|
5524
|
+
if (vErrors === null) {
|
|
5525
|
+
vErrors = [err15];
|
|
5526
|
+
}
|
|
5527
|
+
else {
|
|
5528
|
+
vErrors.push(err15);
|
|
5529
|
+
}
|
|
5530
|
+
errors++;
|
|
5531
|
+
}
|
|
5532
|
+
}
|
|
5520
5533
|
if (data.folder !== undefined) {
|
|
5521
|
-
let
|
|
5522
|
-
if (typeof
|
|
5523
|
-
if (func2(
|
|
5524
|
-
const
|
|
5534
|
+
let data12 = data.folder;
|
|
5535
|
+
if (typeof data12 === "string") {
|
|
5536
|
+
if (func2(data12) < 1) {
|
|
5537
|
+
const err16 = { instancePath: instancePath + "/folder", schemaPath: "#/properties/folder/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
5525
5538
|
if (vErrors === null) {
|
|
5526
|
-
vErrors = [
|
|
5539
|
+
vErrors = [err16];
|
|
5527
5540
|
}
|
|
5528
5541
|
else {
|
|
5529
|
-
vErrors.push(
|
|
5542
|
+
vErrors.push(err16);
|
|
5530
5543
|
}
|
|
5531
5544
|
errors++;
|
|
5532
5545
|
}
|
|
5533
|
-
if (!pattern15.test(
|
|
5534
|
-
const
|
|
5546
|
+
if (!pattern15.test(data12)) {
|
|
5547
|
+
const err17 = { instancePath: instancePath + "/folder", schemaPath: "#/properties/folder/pattern", keyword: "pattern", params: { pattern: "^[^/]+(?:/[^/]+)*$" }, message: "must match pattern \"" + "^[^/]+(?:/[^/]+)*$" + "\"" };
|
|
5535
5548
|
if (vErrors === null) {
|
|
5536
|
-
vErrors = [
|
|
5549
|
+
vErrors = [err17];
|
|
5537
5550
|
}
|
|
5538
5551
|
else {
|
|
5539
|
-
vErrors.push(
|
|
5552
|
+
vErrors.push(err17);
|
|
5540
5553
|
}
|
|
5541
5554
|
errors++;
|
|
5542
5555
|
}
|
|
5543
5556
|
}
|
|
5544
5557
|
else {
|
|
5545
|
-
const
|
|
5558
|
+
const err18 = { instancePath: instancePath + "/folder", schemaPath: "#/properties/folder/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5546
5559
|
if (vErrors === null) {
|
|
5547
|
-
vErrors = [
|
|
5560
|
+
vErrors = [err18];
|
|
5548
5561
|
}
|
|
5549
5562
|
else {
|
|
5550
|
-
vErrors.push(
|
|
5563
|
+
vErrors.push(err18);
|
|
5551
5564
|
}
|
|
5552
5565
|
errors++;
|
|
5553
5566
|
}
|
|
5554
5567
|
}
|
|
5555
5568
|
}
|
|
5556
5569
|
else {
|
|
5557
|
-
const
|
|
5570
|
+
const err19 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5558
5571
|
if (vErrors === null) {
|
|
5559
|
-
vErrors = [
|
|
5572
|
+
vErrors = [err19];
|
|
5560
5573
|
}
|
|
5561
5574
|
else {
|
|
5562
|
-
vErrors.push(
|
|
5575
|
+
vErrors.push(err19);
|
|
5563
5576
|
}
|
|
5564
5577
|
errors++;
|
|
5565
5578
|
} validate65.errors = vErrors; return errors === 0; }
|