fix: json data validation (#514)

* json data validation

* 使用 jsonDataValidation 自动更正

* fix: 字段缺失时补全而不是报错
This commit is contained in:
秋云
2025-04-03 22:02:37 +08:00
committed by GitHub
parent b865b200bc
commit fbef10776b
2595 changed files with 125405 additions and 122363 deletions

View File

@@ -5,7 +5,7 @@
"author": "C-01-11011",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -561.482889303903,
"y": 1448.9771712850707,
"x": -561.48,
"y": 1448.98,
"action_params": ""
},
{
@@ -22,8 +22,8 @@
"action": "",
"move_mode": "walk",
"type": "path",
"x": -508.4455270657909,
"y": 1444.9778846824138,
"x": -508.45,
"y": 1444.98,
"action_params": ""
},
{
@@ -31,8 +31,8 @@
"action": "",
"move_mode": "walk",
"type": "path",
"x": -476.4194439939019,
"y": 1427.9809166211144,
"x": -476.42,
"y": 1427.98,
"action_params": ""
},
{
@@ -40,8 +40,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -489.4229687333463,
"y": 1406.9837702104817,
"x": -489.42,
"y": 1406.98,
"action_params": "",
"locked": false
},
@@ -50,8 +50,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -524.4568062320141,
"y": 1342.9960763146228,
"x": -524.46,
"y": 1343.0,
"action_params": "",
"locked": false
},
@@ -60,8 +60,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -557.4814794081249,
"y": 1370.9909041838964,
"x": -557.48,
"y": 1370.99,
"action_params": "",
"locked": false
},
@@ -70,8 +70,8 @@
"action": "",
"move_mode": "walk",
"type": "path",
"x": -625.5280059687939,
"y": 1351.994471170603,
"x": -625.53,
"y": 1351.99,
"action_params": ""
},
{
@@ -79,8 +79,8 @@
"action": "",
"move_mode": "walk",
"type": "path",
"x": -647.5435148223496,
"y": 1375.9901907865533,
"x": -647.54,
"y": 1375.99,
"action_params": ""
},
{
@@ -88,8 +88,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -621.5308257603501,
"y": 1371.9909041838964,
"x": -621.53,
"y": 1371.99,
"action_params": "",
"locked": false
},
@@ -98,8 +98,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -665.5562038843491,
"y": 1418.9821650664617,
"x": -665.56,
"y": 1418.98,
"action_params": "",
"locked": false
},
@@ -108,8 +108,8 @@
"action": "",
"move_mode": "walk",
"type": "path",
"x": -693.5759424252392,
"y": 1369.991260882567,
"x": -693.58,
"y": 1369.99,
"action_params": ""
},
{
@@ -117,8 +117,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -729.5956809661293,
"y": 1370.990725834561,
"x": -729.6,
"y": 1370.99,
"action_params": "",
"locked": false
}

View File

@@ -5,7 +5,7 @@
"author": "C-01-11011",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "fly",
"type": "teleport",
"x": -855.7499980613829,
"y": 1295.7612360081293,
"x": -855.75,
"y": 1295.76,
"action_params": ""
},
{
@@ -22,8 +22,8 @@
"action": "stop_flying",
"move_mode": "fly",
"type": "path",
"x": -854.9999981149849,
"y": 1330.879971487724,
"x": -855.0,
"y": 1330.88,
"action_params": "",
"locked": false
},
@@ -32,8 +32,8 @@
"action": "fight",
"move_mode": "walk",
"type": "path",
"x": -854.9999981149849,
"y": 1330.879971487724,
"x": -855.0,
"y": 1330.88,
"action_params": "",
"locked": false
}

View File

@@ -5,7 +5,7 @@
"author": "C-01-11011",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -1018.4999965515854,
"y": 1334.7692171408871,
"x": -1018.5,
"y": 1334.77,
"action_params": ""
},
{
@@ -22,8 +22,8 @@
"action": "",
"move_mode": "run",
"type": "path",
"x": -1008.7499972484147,
"y": 1360.2646692328344,
"x": -1008.75,
"y": 1360.26,
"action_params": ""
},
{
@@ -31,8 +31,8 @@
"action": "",
"move_mode": "run",
"type": "path",
"x": -1029.249995783286,
"y": 1394.7585161807638,
"x": -1029.25,
"y": 1394.76,
"action_params": ""
},
{
@@ -40,8 +40,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -1040.4999944074934,
"y": 1397.258962054102,
"x": -1040.5,
"y": 1397.26,
"action_params": "",
"locked": false
}

View File

@@ -5,7 +5,7 @@
"author": "C-01-11011",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -689.9999904230554,
"y": 930.1136085266371,
"x": -690.0,
"y": 930.11,
"action_params": ""
},
{
@@ -22,8 +22,8 @@
"action": "",
"move_mode": "run",
"type": "path",
"x": -666.9999920668597,
"y": 952.109684841259,
"x": -667.0,
"y": 952.11,
"action_params": ""
},
{
@@ -31,8 +31,8 @@
"action": "fight",
"move_mode": "run",
"type": "target",
"x": -680.9999910662827,
"y": 1025.0966653397754,
"x": -681.0,
"y": 1025.1,
"action_params": "",
"locked": false
}

View File

@@ -5,7 +5,7 @@
"author": "C-01-11011",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "run",
"type": "teleport",
"x": -689.9999904230554,
"y": 930.1136085266371,
"x": -690.0,
"y": 930.11,
"action_params": ""
},
{
@@ -22,8 +22,8 @@
"action": "fight",
"move_mode": "run",
"type": "target",
"x": -586.7499993746405,
"y": 957.0233637629344,
"x": -586.75,
"y": 957.02,
"action_params": "",
"locked": false
}

View File

@@ -5,7 +5,7 @@
"author": "C-01-11011",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -492.49999099481283,
"y": 858.5378100591006,
"x": -492.5,
"y": 858.54,
"action_params": ""
},
{
@@ -22,8 +22,8 @@
"action": "",
"move_mode": "walk",
"type": "path",
"x": -509.9999897440939,
"y": 792.0496702899036,
"x": -510.0,
"y": 792.05,
"action_params": ""
},
{
@@ -31,8 +31,8 @@
"action": "fight",
"move_mode": "walk",
"type": "target",
"x": -536.9999874570622,
"y": 776.5520780059314,
"x": -537.0,
"y": 776.55,
"action_params": "",
"locked": false
}