{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Bausteinsicht Workspace", "description": "Configuration of a multi-model workspace (workspace list, validate, merge, fetch)", "type": "object", "properties": { "$schema": { "type": "string" }, "crossModelRelationships": { "items": { "$ref": "#/definitions/CrossModelRelationship" }, "type": "array" }, "models": { "items": { "$ref": "#/definitions/ModelRef" }, "type": "array" }, "views": { "additionalProperties": { "$ref": "#/definitions/WorkspaceView" }, "type": "object" }, "workspace": { "$ref": "#/definitions/WorkspaceMetadata" } }, "required": [ "workspace", "models" ], "additionalProperties": false, "definitions": { "Config": { "additionalProperties": false, "properties": { "author": { "type": "string" }, "legend": { "type": "boolean" }, "metadata": { "type": "boolean" }, "repo": { "type": "string" } }, "type": "object" }, "Constraint": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "element-kind": { "type": "string" }, "field": { "type": "string" }, "from": { "type": "string" }, "from-kind": { "type": "string" }, "from-kinds": { "items": { "type": "string" }, "type": "array" }, "from-tag": { "type": "string" }, "from-tags": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "max": { "type": "integer" }, "rule": { "enum": [ "allowed-relationship", "max-depth", "no-circular-dependency", "no-relationship", "required-field", "technology-allowed" ], "type": "string" }, "tag": { "type": "string" }, "technologies": { "items": { "type": "string" }, "type": "array" }, "to": { "type": "string" }, "to-kind": { "type": "string" }, "to-tag": { "type": "string" } }, "required": [ "id", "description", "rule" ], "type": "object" }, "CrossModelRelationship": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "from": { "type": "string" }, "id": { "type": "string" }, "kind": { "type": "string" }, "label": { "type": "string" }, "to": { "type": "string" } }, "required": [ "id", "from", "to" ], "type": "object" }, "DecisionRecord": { "additionalProperties": false, "properties": { "date": { "type": "string" }, "file": { "type": "string" }, "id": { "type": "string" }, "status": { "enum": [ "proposed", "accepted", "active", "deprecated", "superseded" ], "type": "string" }, "title": { "type": "string" } }, "required": [ "id", "title", "status" ], "type": "object" }, "DocLink": { "additionalProperties": false, "properties": { "href": { "type": "string" }, "title": { "type": "string" }, "type": { "type": "string" } }, "required": [ "type", "href" ], "type": "object" }, "DynamicView": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "key": { "type": "string" }, "steps": { "items": { "$ref": "#/definitions/SequenceStep" }, "type": "array" }, "title": { "type": "string" } }, "required": [ "key", "title", "steps" ], "type": "object" }, "Element": { "additionalProperties": false, "properties": { "children": { "additionalProperties": { "$ref": "#/definitions/Element" }, "type": "object" }, "decisions": { "items": { "type": "string" }, "type": "array" }, "description": { "type": "string" }, "docLinks": { "items": { "$ref": "#/definitions/DocLink" }, "type": "array" }, "kind": { "type": "string" }, "lastModified": { "type": "string" }, "link": { "type": "string" }, "metadata": { "additionalProperties": { "type": "string" }, "type": "object" }, "status": { "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array" }, "technology": { "type": "string" }, "title": { "type": "string" } }, "required": [ "kind", "title" ], "type": "object" }, "ElementKind": { "additionalProperties": false, "properties": { "c4": { "enum": [ "Person", "Person_Ext", "System", "System_Ext", "SystemDb", "SystemDb_Ext", "SystemQueue", "SystemQueue_Ext", "Container", "Container_Ext", "ContainerDb", "ContainerDb_Ext", "ContainerQueue", "ContainerQueue_Ext", "Component", "Component_Ext", "ComponentDb", "ComponentDb_Ext", "ComponentQueue", "ComponentQueue_Ext" ], "type": "string" }, "container": { "type": "boolean" }, "description": { "type": "string" }, "notation": { "type": "string" } }, "required": [ "notation" ], "type": "object" }, "ModelRef": { "additionalProperties": false, "properties": { "depth": { "type": "integer" }, "elements": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "path": { "type": "string" }, "prefix": { "type": "string" }, "source": { "type": "string" } }, "required": [ "id" ], "type": "object" }, "ModelSnapshot": { "additionalProperties": false, "properties": { "elements": { "additionalProperties": { "$ref": "#/definitions/Element" }, "type": "object" }, "relationships": { "items": { "$ref": "#/definitions/Relationship" }, "type": "array" } }, "required": [ "elements", "relationships" ], "type": "object" }, "PatternDefinition": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "elements": { "items": { "$ref": "#/definitions/PatternElement" }, "type": "array" }, "relationships": { "items": { "$ref": "#/definitions/PatternRelationship" }, "type": "array" } }, "required": [ "elements" ], "type": "object" }, "PatternElement": { "additionalProperties": false, "properties": { "children": { "items": { "$ref": "#/definitions/PatternElement" }, "type": "array" }, "description": { "type": "string" }, "id": { "type": "string" }, "kind": { "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array" }, "technology": { "type": "string" }, "title": { "type": "string" } }, "required": [ "id", "kind", "title" ], "type": "object" }, "PatternRelationship": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "from": { "type": "string" }, "id": { "type": "string" }, "kind": { "type": "string" }, "label": { "type": "string" }, "to": { "type": "string" } }, "required": [ "id", "from", "to" ], "type": "object" }, "Relationship": { "additionalProperties": false, "properties": { "cardinality": { "type": "string" }, "dataFlow": { "type": "string" }, "decisions": { "items": { "type": "string" }, "type": "array" }, "description": { "type": "string" }, "from": { "type": "string" }, "kind": { "type": "string" }, "label": { "type": "string" }, "technology": { "type": "string" }, "to": { "type": "string" } }, "required": [ "from", "to" ], "type": "object" }, "RelationshipKind": { "additionalProperties": false, "properties": { "dashed": { "type": "boolean" }, "notation": { "type": "string" } }, "required": [ "notation" ], "type": "object" }, "SequenceStep": { "additionalProperties": false, "properties": { "from": { "type": "string" }, "index": { "type": "integer" }, "label": { "type": "string" }, "to": { "type": "string" }, "type": { "type": "string" } }, "required": [ "index", "from", "to", "label" ], "type": "object" }, "Specification": { "additionalProperties": false, "properties": { "decisions": { "items": { "$ref": "#/definitions/DecisionRecord" }, "type": "array" }, "elements": { "additionalProperties": { "$ref": "#/definitions/ElementKind" }, "type": "object" }, "patterns": { "additionalProperties": { "$ref": "#/definitions/PatternDefinition" }, "type": "object" }, "relationships": { "additionalProperties": { "$ref": "#/definitions/RelationshipKind" }, "type": "object" }, "tags": { "items": { "$ref": "#/definitions/TagDefinition" }, "type": "array" } }, "required": [ "elements" ], "type": "object" }, "TagDefinition": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "id": { "type": "string" }, "style": { "type": "object" } }, "required": [ "id" ], "type": "object" }, "View": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "docLinks": { "items": { "$ref": "#/definitions/DocLink" }, "type": "array" }, "exclude": { "items": { "type": "string" }, "type": "array" }, "exclude-tags": { "items": { "type": "string" }, "type": "array" }, "filter-tags": { "items": { "type": "string" }, "type": "array" }, "include": { "items": { "type": "string" }, "type": "array" }, "layout": { "type": "string" }, "legend": { "type": "boolean" }, "scope": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title" ], "type": "object" }, "WorkspaceMetadata": { "additionalProperties": false, "properties": { "allowedHosts": { "items": { "type": "string" }, "type": "array" }, "description": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name" ], "type": "object" }, "WorkspaceView": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "exclude-kinds": { "items": { "type": "string" }, "type": "array" }, "include-from": { "items": { "type": "string" }, "type": "array" }, "include-kinds": { "items": { "type": "string" }, "type": "array" }, "layout": { "enum": [ "layered", "grid", "none" ], "type": "string" }, "title": { "type": "string" } }, "required": [ "title" ], "type": "object" } } }