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": "Tim",
"version": "1.0",
"description": "少一个点要用四叶印",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,77 +13,77 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4444.7353515625,
"y": -2469.8173828125
"x": 4444.74,
"y": -2469.82
},
{
"id": 2,
"x": 4466.77587890625,
"y": -2484.8798828125,
"x": 4466.78,
"y": -2484.88,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4475.18359375,
"y": -2500.4716796875,
"x": 4475.18,
"y": -2500.47,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 4490.76416015625,
"y": -2524.3232421875,
"x": 4490.76,
"y": -2524.32,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4555.4697265625,
"y": -2517.5380859375,
"x": 4555.47,
"y": -2517.54,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4572.78173828125,
"y": -2507.3291015625,
"x": 4572.78,
"y": -2507.33,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4595.47412109375,
"y": -2525.2568359375,
"x": 4595.47,
"y": -2525.26,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4604.96630859375,
"y": -2534.1826171875,
"x": 4604.97,
"y": -2534.18,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 4631.90380859375,
"y": -2558.353515625,
"x": 4631.9,
"y": -2558.35,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 4639.0224609375,
"y": -2569.341796875,
"x": 4639.02,
"y": -2569.34,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "Tim",
"version": "1.0",
"description": "",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,61 +13,61 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4691.66455078125,
"y": -2345.1875
"x": 4691.66,
"y": -2345.19
},
{
"id": 2,
"x": 4743.37158203125,
"y": -2342.0615234375,
"x": 4743.37,
"y": -2342.06,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4761.01611328125,
"y": -2333.658203125,
"x": 4761.02,
"y": -2333.66,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 4761.81396484375,
"y": -2336.564453125,
"x": 4761.81,
"y": -2336.56,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4774.43359375,
"y": -2390.0693359375,
"x": 4774.43,
"y": -2390.07,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4780.44970703125,
"y": -2406.8134765625,
"x": 4780.45,
"y": -2406.81,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4758.908203125,
"y": -2441.9267578125,
"x": 4758.91,
"y": -2441.93,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4816.10107421875,
"y": -2451.2236328125,
"x": 4816.1,
"y": -2451.22,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "Tim",
"version": "1.0",
"description": "",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,21 +13,21 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4795.578125,
"y": -2576.3466796875
"x": 4795.58,
"y": -2576.35
},
{
"id": 2,
"x": 4803.3828125,
"y": -2621.3759765625,
"x": 4803.38,
"y": -2621.38,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4806.73681640625,
"y": -2632.6884765625,
"x": 4806.74,
"y": -2632.69,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "Tim",
"version": "1.0",
"description": "",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,69 +13,69 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4777.322265625,
"y": -1434.5712890625
"x": 4777.32,
"y": -1434.57
},
{
"id": 2,
"x": 4786.32177734375,
"y": -1433.595703125,
"x": 4786.32,
"y": -1433.6,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4798.00830078125,
"y": -1459.1015625,
"x": 4798.01,
"y": -1459.1,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 4810.14990234375,
"y": -1453.8583984375,
"x": 4810.15,
"y": -1453.86,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4814.94091796875,
"y": -1463.60888671875,
"x": 4814.94,
"y": -1463.61,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4853.89697265625,
"y": -1494.97119140625,
"x": 4853.9,
"y": -1494.97,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4897.56396484375,
"y": -1525.408203125,
"x": 4897.56,
"y": -1525.41,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4905.619140625,
"y": -1539.60205078125,
"x": 4905.62,
"y": -1539.6,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 4916.18603515625,
"y": -1543.65283203125,
"x": 4916.19,
"y": -1543.65,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "Tim",
"version": "1.0",
"description": "",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,21 +13,21 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4994.080078125,
"y": -2161.736328125
"x": 4994.08,
"y": -2161.74
},
{
"id": 2,
"x": 4987.9482421875,
"y": -2190.603515625,
"x": 4987.95,
"y": -2190.6,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": 4977.107421875,
"y": -2224.5419921875,
"x": 4977.11,
"y": -2224.54,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,69 +5,69 @@
"author": "Tim",
"version": "1.0",
"description": "少一个点要用四叶印",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 4790.89892578125,
"y": -3182.685546875,
"x": 4790.9,
"y": -3182.69,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 2,
"x": 4773.08447265625,
"y": -3147.3583984375,
"x": 4773.08,
"y": -3147.36,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4762.68603515625,
"y": -3115.7333984375,
"x": 4762.69,
"y": -3115.73,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4773.90576171875,
"y": -3089.408203125,
"x": 4773.91,
"y": -3089.41,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4824.07958984375,
"y": -3103.958984375,
"x": 4824.08,
"y": -3103.96,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4843.2880859375,
"y": -3111.1484375,
"x": 4843.29,
"y": -3111.15,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4881.9931640625,
"y": -3102.720703125,
"x": 4881.99,
"y": -3102.72,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 4888.08544921875,
"y": -3108.1396484375,
"x": 4888.09,
"y": -3108.14,
"type": "target",
"move_mode": "fly",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "Tim",
"version": "1.0",
"description": "",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,21 +13,21 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 3999.75439453125,
"y": -2012.9365234375
"x": 3999.75,
"y": -2012.94
},
{
"id": 2,
"x": 3963.4521484375,
"y": -1971.046875,
"x": 3963.45,
"y": -1971.05,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 3948.6484375,
"y": -1954.4453125,
"x": 3948.65,
"y": -1954.45,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "Tim",
"version": "1.0",
"description": "",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,101 +13,101 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4409.697265625,
"y": -1874.69384765625
"x": 4409.7,
"y": -1874.69
},
{
"id": 2,
"x": 4360.47705078125,
"y": -1865.017578125,
"x": 4360.48,
"y": -1865.02,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4361.1416015625,
"y": -1845.07958984375,
"x": 4361.14,
"y": -1845.08,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 4366.8994140625,
"y": -1835.3701171875,
"x": 4366.9,
"y": -1835.37,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4368.17578125,
"y": -1839.111328125,
"x": 4368.18,
"y": -1839.11,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4387.716796875,
"y": -1811.794921875,
"x": 4387.72,
"y": -1811.79,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4396.39111328125,
"y": -1776.62451171875,
"x": 4396.39,
"y": -1776.62,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4380.41162109375,
"y": -1742.57666015625,
"x": 4380.41,
"y": -1742.58,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 4336.88134765625,
"y": -1736.919921875,
"x": 4336.88,
"y": -1736.92,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 4300.6279296875,
"y": -1725.248046875,
"x": 4300.63,
"y": -1725.25,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 11,
"x": 4280.134765625,
"y": -1683.9169921875,
"x": 4280.13,
"y": -1683.92,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 12,
"x": 4283.11767578125,
"y": -1675.03857421875,
"x": 4283.12,
"y": -1675.04,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 13,
"x": 4287.4599609375,
"y": -1670.8251953125,
"x": 4287.46,
"y": -1670.83,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,85 +5,85 @@
"author": "Tim",
"version": "1.0",
"description": "",
"bgiVersion": "0.34.5"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 5655.60205078125,
"y": -1821.67626953125,
"x": 5655.6,
"y": -1821.68,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 2,
"x": 5651.4912109375,
"y": -1830.3291015625,
"x": 5651.49,
"y": -1830.33,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 5673.34130859375,
"y": -1837.92724609375,
"x": 5673.34,
"y": -1837.93,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 5679.982421875,
"y": -1840.0048828125,
"x": 5679.98,
"y": -1840.0,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 5652.96240234375,
"y": -1902.60400390625,
"x": 5652.96,
"y": -1902.6,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 5644.90966796875,
"y": -1914.69921875,
"x": 5644.91,
"y": -1914.7,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 5639.447265625,
"y": -1896.4111328125,
"x": 5639.45,
"y": -1896.41,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 5630.94970703125,
"y": -1878.38720703125,
"x": 5630.95,
"y": -1878.39,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 5634.46875,
"y": -1874.25390625,
"x": 5634.47,
"y": -1874.25,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 5633.86181640625,
"y": -1855.525390625,
"x": 5633.86,
"y": -1855.53,
"type": "target",
"move_mode": "walk",
"action": ""