Files
pi-config/skills/archify/schemas/dataflow.schema.json
Sam Rolfe 8e68df0830 Add archify skill (v2.14), pi-mermaid ext (v0.3.0), project-diagramming-mermaid + project-diagramming-archify skills
- skills/archify: vendored tt-a1i/archify 2.14.0 (MIT), pure Node 18+, zero deps
- extensions/pi-mermaid: renders mermaid blocks as ASCII in TUI; deps beautiful-mermaid + mermaid
- skills/project-diagramming-*: orchestration skills, per-project docs/ convention
2026-09-06 10:50:29 +10:00

260 lines
5.8 KiB
JSON

{
"$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
},
"subtitle": {
"type": "string"
},
"output": {
"type": "string"
},
"animation": {
"enum": [
"trace",
"none"
]
},
"visual_preset": {
"enum": [
"classic",
"signal-flow",
"blueprint",
"editorial"
]
},
"quality_profile": {
"enum": [
"standard",
"showcase"
]
},
"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"
},
"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": {
"enum": [
"left",
"right",
"top",
"bottom"
]
},
"toSide": {
"enum": [
"left",
"right",
"top",
"bottom"
]
},
"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": {
"type": "number",
"minimum": 0.5
}
}
}
},
"cards": {
"$ref": "common.schema.json#/$defs/cards"
}
}
}