26 lines
821 B
JSON
26 lines
821 B
JSON
{
|
|
"name": "sketch_basic",
|
|
"description": "Sketch风格基础架构图生成",
|
|
"type": "quick_architecture",
|
|
"params": {
|
|
"title": "测试架构图",
|
|
"layers": [
|
|
{"name": "前端层", "items": ["React"], "color": "frontend"},
|
|
{"name": "后端层", "items": ["FastAPI"], "color": "backend"},
|
|
{"name": "数据层", "items": ["PostgreSQL"], "color": "database"}
|
|
],
|
|
"output": "__TMP__/01_sketch_basic.svg",
|
|
"style": "sketch",
|
|
"format": "svg"
|
|
},
|
|
"assertions": [
|
|
{"check": "not_empty"},
|
|
{"check": "contains", "text": "React"},
|
|
{"check": "contains", "text": "FastAPI"},
|
|
{"check": "contains", "text": "PostgreSQL"},
|
|
{"check": "contains_tag", "tag": "<svg"},
|
|
{"check": "contains_tag", "tag": "<rect"},
|
|
{"check": "contains_tag", "tag": "<text"}
|
|
]
|
|
}
|