{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/tt-a1i/archify/schemas/dataflow.schema.json", "title": "Archify Data Flow Diagram", "type": "object", "additionalProperties": false, "required": [ "schema_version", "diagram_type", "meta", "stages", "nodes", "flows" ], "properties": { "schema_version": { "const": 1 }, "diagram_type": { "const": "dataflow" }, "meta": { "type": "object", "additionalProperties": false, "required": [ "title" ], "properties": { "title": { "type": "string", "minLength": 1 }, "locale": { "$ref": "common.schema.json#/$defs/locale" }, "subtitle": { "type": "string" }, "output": { "type": "string" }, "animation": { "$ref": "common.schema.json#/$defs/animation" }, "visual_preset": { "$ref": "common.schema.json#/$defs/visualPreset" }, "quality_profile": { "$ref": "common.schema.json#/$defs/qualityProfile" }, "views": { "$ref": "common.schema.json#/$defs/guidedViews" }, "legend": { "type": "object", "additionalProperties": false, "properties": { "mode": { "$ref": "common.schema.json#/$defs/legendMode" }, "entries": { "type": "object", "additionalProperties": false, "properties": { "default": { "$ref": "common.schema.json#/$defs/legendEntry" }, "emphasis": { "$ref": "common.schema.json#/$defs/legendEntry" }, "security": { "$ref": "common.schema.json#/$defs/legendEntry" }, "dashed": { "$ref": "common.schema.json#/$defs/legendEntry" }, "database": { "$ref": "common.schema.json#/$defs/legendEntry" } } } } }, "viewBox": { "type": "array", "prefixItems": [ { "type": "number", "minimum": 360 }, { "type": "number", "minimum": 360 } ], "items": false, "minItems": 2, "maxItems": 2 } } }, "stages": { "type": "array", "minItems": 2, "maxItems": 5, "items": { "type": "object", "additionalProperties": false, "required": [ "label" ], "properties": { "label": { "type": "string", "minLength": 1 } } } }, "nodes": { "type": "array", "minItems": 2, "items": { "type": "object", "additionalProperties": false, "required": [ "id", "type", "label", "stage", "row" ], "properties": { "id": { "$ref": "common.schema.json#/$defs/id" }, "type": { "$ref": "common.schema.json#/$defs/componentType" }, "label": { "type": "string", "minLength": 1 }, "sublabel": { "type": "string" }, "tag": { "type": "string" }, "brand": { "$ref": "common.schema.json#/$defs/brandMark" }, "stage": { "type": "integer", "minimum": 0 }, "row": { "type": "integer", "minimum": 0 }, "width": { "type": "number", "minimum": 48 }, "height": { "type": "number", "minimum": 36 }, "yOffset": { "type": "number" } } } }, "flows": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": [ "from", "to", "label" ], "properties": { "id": { "$ref": "common.schema.json#/$defs/id" }, "from": { "$ref": "common.schema.json#/$defs/id" }, "to": { "$ref": "common.schema.json#/$defs/id" }, "label": { "type": "string", "minLength": 1 }, "classification": { "type": "string" }, "variant": { "$ref": "common.schema.json#/$defs/variant" }, "route": { "enum": [ "auto", "straight", "vertical-channel", "bottom-channel", "top-channel" ] }, "fromSide": { "$ref": "common.schema.json#/$defs/side" }, "toSide": { "$ref": "common.schema.json#/$defs/side" }, "channelX": { "type": "number" }, "channelY": { "type": "number" }, "labelAt": { "$ref": "common.schema.json#/$defs/point" }, "labelDx": { "type": "number" }, "labelDy": { "type": "number" }, "labelSegment": { "type": "integer", "minimum": 0 }, "via": { "type": "array", "items": { "$ref": "common.schema.json#/$defs/point" } }, "width": { "$ref": "common.schema.json#/$defs/relationshipWidth" } } } }, "cards": { "$ref": "common.schema.json#/$defs/cards" } } }