Skip to content

Commit e0aab5d

Browse files
chore: update pipeline schema files from MaaFramework
Triggered by 5ccbbb7 [skip changelog]
1 parent 5ccbbb7 commit e0aab5d

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

deps/tools/pipeline.schema.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@
12781278
}
12791279
}
12801280
},
1281-
"SubRecognition": {
1281+
"SubRecognitionInline": {
12821282
"type": "object",
12831283
"properties": {
12841284
"sub_name": {
@@ -1289,17 +1289,28 @@
12891289
}
12901290
}
12911291
},
1292+
"SubRecognition": {
1293+
"anyOf": [
1294+
{
1295+
"type": "string",
1296+
"description": "节点名称引用。运行时使用该节点的识别算法和参数。"
1297+
},
1298+
{
1299+
"$ref": "#/$defs/SubRecognitionInline"
1300+
}
1301+
]
1302+
},
12921303
"And": {
12931304
"type": "object",
12941305
"properties": {
12951306
"all_of": {
12961307
"title": "All Of Property",
1297-
"description": "子识别列表。所有子识别都命中才算成功。必选。",
1308+
"description": "子识别列表。所有子识别都命中才算成功。必选。支持节点名称引用或内联定义。",
12981309
"type": "array",
12991310
"items": {
13001311
"$ref": "#/$defs/SubRecognition"
13011312
},
1302-
"markdownDescription": "*list<object, >*\n\n子识别列表。所有子识别都命中才算成功。必选。\n\n列表元素写法与普通节点的 `recognition` 一致(兼容 v1/v2,允许混用)"
1313+
"markdownDescription": "*list<string | object, >*\n\n子识别列表。所有子识别都命中才算成功。必选。\n\n列表元素可以是:\n- 字符串:节点名称引用,运行时使用该节点的识别算法和参数\n- 对象:内联识别定义,写法与普通节点的 `recognition` 一致(兼容 v1/v2,允许混用)"
13031314
},
13041315
"box_index": {
13051316
"title": "Box Index Property",
@@ -1352,12 +1363,12 @@
13521363
"properties": {
13531364
"any_of": {
13541365
"title": "Any Of Property",
1355-
"description": "子识别列表。命中第一个即成功,后续不再识别。必选。",
1366+
"description": "子识别列表。命中第一个即成功,后续不再识别。必选。支持节点名称引用或内联定义。",
13561367
"type": "array",
13571368
"items": {
13581369
"$ref": "#/$defs/SubRecognition"
13591370
},
1360-
"markdownDescription": "*list<object, >*\n\n子识别列表。命中第一个即成功,后续不再识别。必选。\n\n列表元素写法与普通节点的 `recognition` 一致(兼容 v1/v2,允许混用)"
1371+
"markdownDescription": "*list<string | object, >*\n\n子识别列表。命中第一个即成功,后续不再识别。必选。\n\n列表元素可以是:\n- 字符串:节点名称引用,运行时使用该节点的识别算法和参数\n- 对象:内联识别定义,写法与普通节点的 `recognition` 一致(兼容 v1/v2,允许混用)"
13611372
}
13621373
},
13631374
"required": [

0 commit comments

Comments
 (0)