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

@@ -1 +1,100 @@
{"info":{"name":"","type":""},"positions":[{"x":3639.6220703125,"y":-1417.51611328125,"type":"teleport","move_mode":"walk"},{"x":3657.0205078125,"y":-1420.81884765625,"type":"path","move_mode":"walk"},{"x":3718.470703125,"y":-1449.81201171875,"type":"path","move_mode":"fly","action":"stop_flying"},{"x":3719.470703125,"y":-1449.81201171875,"type":"path","move_mode":"walk","action":"fight"},{"x":3741.294921875,"y":-1450.76953125,"type":"path","move_mode":"walk"},{"x":3799.39453125,"y":-1450.5009765625,"type":"path","move_mode":"fly","action":"stop_flying"},{"x":3805.580078125,"y":-1428.296875,"type":"path","move_mode":"walk"},{"x":3810.302734375,"y":-1435.634765625,"type":"path","move_mode":"walk","action":"fight"},{"x":3816.7431640625,"y":-1437.94189453125,"type":"path","move_mode":"walk"},{"x":3813.466796875,"y":-1445.42724609375,"type":"path","move_mode":"walk"},{"x":3808.8193359375,"y":-1413.32275390625,"type":"path","move_mode":"walk"},{"x":3825.8505859375,"y":-1408.31689453125,"type":"path","move_mode":"walk"},{"x":3830.07421875,"y":-1431.1806640625,"type":"path","move_mode":"walk"},{"x":3825.54296875,"y":-1440.33251953125,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "善见地1",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3639.62,
"y": -1417.52,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 3657.02,
"y": -1420.82,
"type": "path",
"move_mode": "walk"
},
{
"x": 3718.47,
"y": -1449.81,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 3719.47,
"y": -1449.81,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 3741.29,
"y": -1450.77,
"type": "path",
"move_mode": "walk"
},
{
"x": 3799.39,
"y": -1450.5,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 3805.58,
"y": -1428.3,
"type": "path",
"move_mode": "walk"
},
{
"x": 3810.3,
"y": -1435.63,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 3816.74,
"y": -1437.94,
"type": "path",
"move_mode": "walk"
},
{
"x": 3813.47,
"y": -1445.43,
"type": "path",
"move_mode": "walk"
},
{
"x": 3808.82,
"y": -1413.32,
"type": "path",
"move_mode": "walk"
},
{
"x": 3825.85,
"y": -1408.32,
"type": "path",
"move_mode": "walk"
},
{
"x": 3830.07,
"y": -1431.18,
"type": "path",
"move_mode": "walk"
},
{
"x": 3825.54,
"y": -1440.33,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,57 @@
{"info":{"name":"","type":""},"positions":[{"x":3639.6083984375,"y":-1417.498046875,"type":"teleport","move_mode":"walk"},{"x":3628.59375,"y":-1419.01953125,"type":"path","move_mode":"walk"},{"x":3558.6845703125,"y":-1436.8935546875,"type":"path","move_mode":"fly","action":"stop_flying"},{"x":3552.435546875,"y":-1441.19482421875,"type":"path","move_mode":"walk","action":"fight"},{"x":3571.0556640625,"y":-1476.9091796875,"type":"path","move_mode":"walk"},{"x":3579.708984375,"y":-1502.62646484375,"type":"path","move_mode":"fly","action":"stop_flying"},{"x":3579.0263671875,"y":-1515.3359375,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "善见地2",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3639.61,
"y": -1417.5,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 3628.59,
"y": -1419.02,
"type": "path",
"move_mode": "walk"
},
{
"x": 3558.68,
"y": -1436.89,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 3552.44,
"y": -1441.19,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 3571.06,
"y": -1476.91,
"type": "path",
"move_mode": "walk"
},
{
"x": 3579.71,
"y": -1502.63,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 3579.03,
"y": -1515.34,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,49 @@
{"info":{"name":"","type":""},"positions":[{"x":5063.82080078125,"y":-1587.7421875,"type":"teleport","move_mode":"walk"},{"x":5077.1669921875,"y":-1503.35693359375,"type":"path","move_mode":"fly"},{"x":5079.81298828125,"y":-1490.07080078125,"type":"path","move_mode":"walk"},{"x":5044.111328125,"y":-1479.98681640625,"type":"path","move_mode":"walk","action":"fight"},{"x":5015.7744140625,"y":-1433.40283203125,"type":"path","move_mode":"walk"},{"x":5012.459,"y":-1413.103,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "塔尼特露营地",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 5063.82,
"y": -1587.74,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 5077.17,
"y": -1503.36,
"type": "path",
"move_mode": "fly"
},
{
"x": 5079.81,
"y": -1490.07,
"type": "path",
"move_mode": "walk"
},
{
"x": 5044.11,
"y": -1479.99,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 5015.77,
"y": -1433.4,
"type": "path",
"move_mode": "walk"
},
{
"x": 5012.46,
"y": -1413.1,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,54 @@
{"info":{"name":"","type":""},"positions":[{"x":3067.849609375,"y":-713.76416015625,"type":"teleport","move_mode":"walk"},{"x":3079.15234375,"y":-712.87255859375,"type":"path","move_mode":"walk"},{"x":3128.650390625,"y":-709.26171875,"type":"path","move_mode":"fly"},{"x":3189.146484375,"y":-704.923828125,"type":"path","move_mode":"fly"},{"x":3230.4892578125,"y":-713.69873046875,"type":"path","move_mode":"walk"},{"x":3266.875,"y":-704.533203125,"type":"path","move_mode":"walk"},{"x":3267.4814,"y":-695.7871,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "天臂池1",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3067.85,
"y": -713.76,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 3079.15,
"y": -712.87,
"type": "path",
"move_mode": "walk"
},
{
"x": 3128.65,
"y": -709.26,
"type": "path",
"move_mode": "fly"
},
{
"x": 3189.15,
"y": -704.92,
"type": "path",
"move_mode": "fly"
},
{
"x": 3230.49,
"y": -713.7,
"type": "path",
"move_mode": "walk"
},
{
"x": 3266.88,
"y": -704.53,
"type": "path",
"move_mode": "walk"
},
{
"x": 3267.48,
"y": -695.79,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,61 @@
{"info":{"name":"","type":""},"positions":[{"x":3097.224609375,"y":-355.9560546875,"type":"teleport","move_mode":"walk"},{"x":3121.46875,"y":-352.08935546875,"type":"path","move_mode":"walk"},{"x":3139.392578125,"y":-344.130859375,"type":"path","move_mode":"walk"},{"x":3151.037109375,"y":-373.82177734375,"type":"path","move_mode":"walk"},{"x":3141.8251953125,"y":-381.6455078125,"type":"path","move_mode":"walk","action":"fight"},{"x":3141.2119140625,"y":-411.4892578125,"type":"path","move_mode":"walk"},{"x":3116.7060546875,"y":-428.81884765625,"type":"path","move_mode":"walk"},{"x":3111.5537,"y":-467.04785,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "天臂池2",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3097.22,
"y": -355.96,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 3121.47,
"y": -352.09,
"type": "path",
"move_mode": "walk"
},
{
"x": 3139.39,
"y": -344.13,
"type": "path",
"move_mode": "walk"
},
{
"x": 3151.04,
"y": -373.82,
"type": "path",
"move_mode": "walk"
},
{
"x": 3141.83,
"y": -381.65,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 3141.21,
"y": -411.49,
"type": "path",
"move_mode": "walk"
},
{
"x": 3116.71,
"y": -428.82,
"type": "path",
"move_mode": "walk"
},
{
"x": 3111.55,
"y": -467.05,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,30 @@
{"info":{"name":"","type":""},"positions":[{"x":3097.1982421875,"y":-355.96826171875,"type":"teleport","move_mode":"walk"},{"x":3043.240234375,"y":-334.57958984375,"type":"path","move_mode":"walk"},{"x":3023.7392578125,"y":-340.2392578125,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "天臂池3",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3097.2,
"y": -355.97,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 3043.24,
"y": -334.58,
"type": "path",
"move_mode": "walk"
},
{
"x": 3023.74,
"y": -340.24,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,74 @@
{"info":{"name":"","type":""},"positions":[{"x":4391.662109375,"y":-2725.90234375,"type":"teleport","move_mode":"walk"},{"x":4421.29248046875,"y":-2715.1767578125,"type":"path","move_mode":"fly"},{"x":4432.138671875,"y":-2711.43359375,"type":"path","move_mode":"walk"},{"x":4444.1650390625,"y":-2719.0830078125,"type":"path","move_mode":"walk"},{"x":4463.21435546875,"y":-2707.404296875,"type":"path","move_mode":"walk","action":"fight"},{"x":4532.97705078125,"y":-2670.326171875,"type":"path","move_mode":"walk"},{"x":4528.685546875,"y":-2644.7138671875,"type":"path","move_mode":"walk","action":"fight"},{"x":4572.2197265625,"y":-2638.8828125,"type":"path","move_mode":"walk"},{"x":4603.0625,"y":-2625.8134765625,"type":"path","move_mode":"walk"},{"x":4609.2138671875,"y":-2640.5087890625,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "荼诃落谷1",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 4391.66,
"y": -2725.9,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 4421.29,
"y": -2715.18,
"type": "path",
"move_mode": "fly"
},
{
"x": 4432.14,
"y": -2711.43,
"type": "path",
"move_mode": "walk"
},
{
"x": 4444.17,
"y": -2719.08,
"type": "path",
"move_mode": "walk"
},
{
"x": 4463.21,
"y": -2707.4,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 4532.98,
"y": -2670.33,
"type": "path",
"move_mode": "walk"
},
{
"x": 4528.69,
"y": -2644.71,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 4572.22,
"y": -2638.88,
"type": "path",
"move_mode": "walk"
},
{
"x": 4603.06,
"y": -2625.81,
"type": "path",
"move_mode": "walk"
},
{
"x": 4609.21,
"y": -2640.51,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,55 @@
{"info":{"name":"","type":""},"positions":[{"x":4209.69140625,"y":-2712.0205078125,"type":"teleport","move_mode":"walk"},{"x":4215.01416015625,"y":-2677.1572265625,"type":"path","move_mode":"walk"},{"x":4231.4423828125,"y":-2658.17578125,"type":"path","move_mode":"walk","action":"fight"},{"x":4255.1484375,"y":-2621.5341796875,"type":"path","move_mode":"walk"},{"x":4300.912109375,"y":-2604.6923828125,"type":"path","move_mode":"walk"},{"x":4339.20849609375,"y":-2590.10546875,"type":"path","move_mode":"walk"},{"x":4341.68310546875,"y":-2604.8251953125,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "荼诃落谷2",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 4209.69,
"y": -2712.02,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 4215.01,
"y": -2677.16,
"type": "path",
"move_mode": "walk"
},
{
"x": 4231.44,
"y": -2658.18,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 4255.15,
"y": -2621.53,
"type": "path",
"move_mode": "walk"
},
{
"x": 4300.91,
"y": -2604.69,
"type": "path",
"move_mode": "walk"
},
{
"x": 4339.21,
"y": -2590.11,
"type": "path",
"move_mode": "walk"
},
{
"x": 4341.68,
"y": -2604.83,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,37 @@
{"info":{"name":"","type":""},"positions":[{"x":3591.275390625,"y":-787.330078125,"type":"teleport","move_mode":"walk"},{"x":3564.79296875,"y":-797.3486328125,"type":"path","move_mode":"walk"},{"x":3561.46484375,"y":-852.71826171875,"type":"path","move_mode":"walk","action":"fight"},{"x":3532.1445,"y":-838.61865,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "觉王之殿1",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3591.28,
"y": -787.33,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 3564.79,
"y": -797.35,
"type": "path",
"move_mode": "walk"
},
{
"x": 3561.46,
"y": -852.72,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 3532.14,
"y": -838.62,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,31 @@
{"info":{"name":"","type":""},"positions":[{"x":2809.107421875,"y":-1789.24072265625,"type":"teleport","move_mode":"walk"},{"x":2865.3759765625,"y":-1753.2880859375,"type":"path","move_mode":"fly","action":"stop_flying"},{"x":2867.9013671875,"y":-1749.04931640625,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "阿陀河谷1",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 2809.11,
"y": -1789.24,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 2865.38,
"y": -1753.29,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 2867.9,
"y": -1749.05,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}

View File

@@ -1 +1,38 @@
{"info":{"name":"","type":""},"positions":[{"x":2805.2861328125,"y":-1791.89892578125,"type":"teleport","move_mode":"walk"},{"x":2798.1103515625,"y":-1879.31591796875,"type":"path","move_mode":"fly","action":"stop_flying"},{"x":2771.7568359375,"y":-1870.90283203125,"type":"path","move_mode":"walk","action":"fight"},{"x":2763.130859375,"y":-1868.63916015625,"type":"path","move_mode":"walk","action":"fight"}]}
{
"info": {
"name": "阿陀河谷2",
"type": "collect",
"author": "未知作者",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 2805.29,
"y": -1791.9,
"type": "teleport",
"move_mode": "walk"
},
{
"x": 2798.11,
"y": -1879.32,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 2771.76,
"y": -1870.9,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"x": 2763.13,
"y": -1868.64,
"type": "path",
"move_mode": "walk",
"action": "fight"
}
]
}