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": ""

View File

@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -1629.361328125,
"y": 2834.408447265625,
"x": -1629.36,
"y": 2834.41,
"action_params": ""
},
{
"id": 2,
"x": -1632.767578125,
"y": 2865.333740234375,
"x": -1632.77,
"y": 2865.33,
"type": "path",
"move_mode": "run",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -1639.619140625,
"y": 2921.008544921875,
"x": -1639.62,
"y": 2921.01,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -1636.46875,
"y": 2926.25341796875,
"x": -1636.47,
"y": 2926.25,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -1622.9296875,
"y": 2930.012451171875,
"x": -1622.93,
"y": 2930.01,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": -1621.76953125,
"y": 2922.744140625,
"x": -1621.77,
"y": 2922.74,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": -1648.2939453125,
"y": 2917.045166015625,
"x": -1648.29,
"y": 2917.05,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": -1670.1279296875,
"y": 2920.9130859375,
"x": -1670.13,
"y": 2920.91,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": -1713.806640625,
"y": 2932.924072265625,
"x": -1713.81,
"y": 2932.92,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": -1715.716796875,
"y": 2929.51025390625,
"x": -1715.72,
"y": 2929.51,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": -1716.384765625,
"y": 2925.73681640625,
"x": -1716.38,
"y": 2925.74,
"type": "path",
"move_mode": "run",
"action": "",
@@ -109,8 +109,8 @@
},
{
"id": 12,
"x": -1723.208984375,
"y": 2913.090087890625,
"x": -1723.21,
"y": 2913.09,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": -1755.1640625,
"y": 2911.011474609375,
"x": -1755.16,
"y": 2911.01,
"type": "path",
"move_mode": "run",
"action": "",
@@ -127,8 +127,8 @@
},
{
"id": 14,
"x": -1781.9990234375,
"y": 2910.478759765625,
"x": -1782.0,
"y": 2910.48,
"type": "path",
"move_mode": "run",
"action": "nahida_collect",
@@ -136,8 +136,8 @@
},
{
"id": 15,
"x": -1794.708984375,
"y": 2921.23046875,
"x": -1794.71,
"y": 2921.23,
"type": "path",
"move_mode": "run",
"action": "",
@@ -145,8 +145,8 @@
},
{
"id": 16,
"x": -1765.1669921875,
"y": 2932.770751953125,
"x": -1765.17,
"y": 2932.77,
"type": "path",
"move_mode": "dash",
"action": "nahida_collect",

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": -1273.79296875,
"y": 2721.66796875,
"x": -1273.79,
"y": 2721.67,
"type": "teleport",
"move_mode": "walk",
"action": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": -1281.69140625,
"y": 2700.806396484375,
"x": -1281.69,
"y": 2700.81,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -1297.064453125,
"y": 2693.57470703125,
"x": -1297.06,
"y": 2693.57,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -1314.158203125,
"y": 2700.407958984375,
"x": -1314.16,
"y": 2700.41,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -1309.6552734375,
"y": 2674.457763671875,
"x": -1309.66,
"y": 2674.46,
"type": "path",
"move_mode": "dash",
"action": "nahida_collect",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": -1273.7900390625,
"y": 2721.681884765625,
"x": -1273.79,
"y": 2721.68,
"type": "teleport",
"move_mode": "walk",
"action": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": -1260.4814453125,
"y": 2781.548583984375,
"x": -1260.48,
"y": 2781.55,
"type": "path",
"move_mode": "dash",
"action": "nahida_collect",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": -1253.2626953125,
"y": 2761.64990234375,
"x": -1253.26,
"y": 2761.65,
"type": "path",
"move_mode": "run",
"action": "nahida_collect",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": -1200.8955078125,
"y": 2771.460693359375,
"x": -1200.9,
"y": 2771.46,
"type": "path",
"move_mode": "run",
"action": "",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": -1175.65625,
"y": 2765.43115234375,
"x": -1175.66,
"y": 2765.43,
"type": "path",
"move_mode": "run",
"action": "nahida_collect",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": -1144.345703125,
"y": 2778.280517578125,
"x": -1144.35,
"y": 2778.28,
"type": "path",
"move_mode": "run",
"action": "",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": -1073.34765625,
"y": 2779.778076171875,
"x": -1073.35,
"y": 2779.78,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
@@ -127,8 +127,8 @@
},
{
"id": 14,
"x": -1063.185546875,
"y": 2779.554443359375,
"x": -1063.19,
"y": 2779.55,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect",
@@ -136,8 +136,8 @@
},
{
"id": 15,
"x": -1083.6650390625,
"y": 2723.14501953125,
"x": -1083.67,
"y": 2723.15,
"type": "path",
"move_mode": "run",
"action": "",
@@ -145,8 +145,8 @@
},
{
"id": 16,
"x": -1090.34765625,
"y": 2667.869140625,
"x": -1090.35,
"y": 2667.87,
"type": "path",
"move_mode": "run",
"action": "nahida_collect",
@@ -154,8 +154,8 @@
},
{
"id": 17,
"x": -1081.0673828125,
"y": 2636.19140625,
"x": -1081.07,
"y": 2636.19,
"type": "path",
"move_mode": "run",
"action": "nahida_collect",
@@ -163,8 +163,8 @@
},
{
"id": 18,
"x": -1117.0634765625,
"y": 2605.0009765625,
"x": -1117.06,
"y": 2605.0,
"type": "path",
"move_mode": "run",
"action": "nahida_collect",