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,103 +5,104 @@
"name": "望风山地1x24",
"description": "",
"type": "collect",
"author": "yulalaa"
"author": "yulalaa",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -1272.5078125,
"y": 2722.89111328125,
"x": -1272.51,
"y": 2722.89,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -1263.2421875,
"y": 2750.99560546875,
"x": -1263.24,
"y": 2751.0,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1254.302734375,
"y": 2764.2880859375,
"x": -1254.3,
"y": 2764.29,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1219.087890625,
"y": 2753.079833984375,
"x": -1219.09,
"y": 2753.08,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1142.9013671875,
"y": 2778.504638671875,
"x": -1142.9,
"y": 2778.5,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1122.6328125,
"y": 2786.236572265625,
"x": -1122.63,
"y": 2786.24,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1099.109375,
"y": 2778.91357421875,
"x": -1099.11,
"y": 2778.91,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -1062.796875,
"y": 2779.894287109375,
"x": -1062.8,
"y": 2779.89,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1095.2402388086812,
"x": -1095.24,
"y": 2718.5,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1084.7060546875,
"y": 2649.568603515625,
"x": -1084.71,
"y": 2649.57,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1074.6552734375,
"y": 2640.092529296875,
"x": -1074.66,
"y": 2640.09,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1118.29296875,
"y": 2603.93115234375,
"x": -1118.29,
"y": 2603.93,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1156.6181640625,
"y": 2658.3427734375,
"x": -1156.62,
"y": 2658.34,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1176.8037109375,
"y": 2685.01171875,
"x": -1176.8,
"y": 2685.01,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,200 +5,200 @@
"author": "yulalaa",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": -1273.70703125,
"y": 2721.664794921875,
"x": -1273.71,
"y": 2721.66,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": -1277.54296875,
"y": 2716.417724609375,
"x": -1277.54,
"y": 2716.42,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 3,
"x": -1293.5673828125,
"y": 2685.89208984375,
"x": -1293.57,
"y": 2685.89,
"action": "",
"move_mode": "fly",
"type": "path"
},
{
"id": 4,
"x": -1304.7099609375,
"y": 2672.21484375,
"x": -1304.71,
"y": 2672.21,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 5,
"x": -1307.853515625,
"y": 2674.1318359375,
"x": -1307.85,
"y": 2674.13,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 6,
"x": -1325.427734375,
"y": 2679.72119140625,
"x": -1325.43,
"y": 2679.72,
"action": "",
"move_mode": "climb",
"type": "path"
},
{
"id": 7,
"x": -1362.875,
"y": 2681.56884765625,
"x": -1362.88,
"y": 2681.57,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 8,
"x": -1367.9921875,
"y": 2681.28662109375,
"x": -1367.99,
"y": 2681.29,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 9,
"x": -1368.8798828125,
"y": 2684.73388671875,
"x": -1368.88,
"y": 2684.73,
"action": "",
"move_mode": "climb",
"type": "target"
},
{
"id": 10,
"x": -1414,
"y": 2670,
"x": -1414.0,
"y": 2670.0,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 11,
"x": -1425.8994140625,
"y": 2671.697021484375,
"x": -1425.9,
"y": 2671.7,
"action": "",
"move_mode": "climb",
"type": "target"
},
{
"id": 12,
"x": -1442.8955078125,
"y": 2672.922607421875,
"x": -1442.9,
"y": 2672.92,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 13,
"x": -1461.328125,
"y": 2673.90576171875,
"x": -1461.33,
"y": 2673.91,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 14,
"x": -1487.2177734375,
"y": 2669.09814453125,
"x": -1487.22,
"y": 2669.1,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 15,
"x": -1451.1611328125,
"y": 2711.33984375,
"x": -1451.16,
"y": 2711.34,
"action": "",
"move_mode": "fly",
"type": "path"
},
{
"id": 16,
"x": -1427.4111328125,
"y": 2744.72412109375,
"x": -1427.41,
"y": 2744.72,
"action": "",
"move_mode": "fly",
"type": "target"
},
{
"id": 17,
"x": -1417.7353515625,
"y": 2749.205322265625,
"x": -1417.74,
"y": 2749.21,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 18,
"x": -1406.572265625,
"y": 2767.641357421875,
"x": -1406.57,
"y": 2767.64,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 19,
"x": -1404.0087890625,
"y": 2806.2861328125,
"x": -1404.01,
"y": 2806.29,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 20,
"x": -1416.3759765625,
"y": 2820.66064453125,
"x": -1416.38,
"y": 2820.66,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 21,
"x": -1455.2314453125,
"y": 2840.6015625,
"x": -1455.23,
"y": 2840.6,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 22,
"x": -1398.931640625,
"y": 2844.23828125,
"x": -1398.93,
"y": 2844.24,
"action": "",
"move_mode": "fly",
"type": "path"
},
{
"id": 23,
"x": -1360.6103515625,
"y": 2844.04296875,
"x": -1360.61,
"y": 2844.04,
"action": "",
"move_mode": "fly",
"type": "path"
},
{
"id": 24,
"x": -1350.5390625,
"y": 2847.770263671875,
"x": -1350.54,
"y": 2847.77,
"action": "",
"move_mode": "walk",
"type": "target"
}
]
}
}

View File

@@ -5,145 +5,146 @@
"name": "望风山地3x16",
"description": "",
"type": "collect",
"author": "yulalaa"
"author": "yulalaa",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -1629.3642578125,
"y": 2834.408203125,
"x": -1629.36,
"y": 2834.41,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -1640.2412109375,
"y": 2868.231201171875,
"x": -1640.24,
"y": 2868.23,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1626.0022700444933,
"x": -1626.0,
"y": 2910.5,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -1622.078125,
"y": 2923.192626953125,
"x": -1622.08,
"y": 2923.19,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1631.078125,
"y": 2927.06494140625,
"x": -1631.08,
"y": 2927.06,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1650.080078125,
"y": 2929.49658203125,
"x": -1650.08,
"y": 2929.5,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1666.3515625,
"y": 2933.884521484375,
"x": -1666.35,
"y": 2933.88,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1707.9934168709715,
"y": 2934,
"x": -1707.99,
"y": 2934.0,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -1720.3017578125,
"y": 2934.336669921875,
"x": -1720.3,
"y": 2934.34,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1727.1533203125,
"y": 2920.980712890625,
"x": -1727.15,
"y": 2920.98,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1739.77734375,
"y": 2913.212158203125,
"x": -1739.78,
"y": 2913.21,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1774.2646484375,
"y": 2907.720703125,
"x": -1774.26,
"y": 2907.72,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1790.306640625,
"y": 2918.33056640625,
"x": -1790.31,
"y": 2918.33,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1769.3798828125,
"y": 2932.182373046875,
"x": -1769.38,
"y": 2932.18,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1763.775390625,
"y": 2933.12939453125,
"x": -1763.78,
"y": 2933.13,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1810.21484375,
"y": 2929.4658203125,
"x": -1810.21,
"y": 2929.47,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1850.5244140625,
"y": 2915.93017578125,
"x": -1850.52,
"y": 2915.93,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1862.1005859375,
"y": 2895.688232421875,
"x": -1862.1,
"y": 2895.69,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1857.900390625,
"y": 2870.1259765625,
"x": -1857.9,
"y": 2870.13,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1846.8193359375,
"y": 2847.69970703125,
"x": -1846.82,
"y": 2847.7,
"type": "target",
"move_mode": "walk",
"action": ""