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,11 +1,11 @@
{
"info": {
"name": "子探测单元-1",
"name": "子探测单元-1(共4个)",
"type": "collect",
"author": "宇寒",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.3"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,37 +13,37 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4545.48388671875,
"y": 4225.6357421875
"x": 4545.48,
"y": 4225.64
},
{
"id": 2,
"x": 4541.55126953125,
"y": 4213.66796875,
"x": 4541.55,
"y": 4213.67,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4548.9560546875,
"y": 4212.3056640625,
"x": 4548.96,
"y": 4212.31,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 4557.63671875,
"y": 4198.1728515625,
"x": 4557.64,
"y": 4198.17,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4570.1923828125,
"y": 4210.31689453125,
"x": 4570.19,
"y": 4210.32,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -3,9 +3,9 @@
"name": "子探测单元-2(共9个)",
"type": "collect",
"author": "宇寒",
"version": "1.3.1",
"version": "1.0",
"description": "修复历史:1.1:修复了飞行不下落的问题;1.2:修改了路径方案;1.3:避免了部分卡死;1.3.1:修复了已知问题",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,189 +13,189 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4935.10498046875,
"y": 4183.357421875
"x": 4935.1,
"y": 4183.36
},
{
"id": 2,
"x": 4921.83642578125,
"y": 4179.8603515625,
"x": 4921.84,
"y": 4179.86,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4950.39599609375,
"y": 4200.677734375,
"x": 4950.4,
"y": 4200.68,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 4948.11474609375,
"y": 4203.533203125,
"x": 4948.11,
"y": 4203.53,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4984.76318359375,
"y": 4462.91650390625,
"x": 4984.76,
"y": 4462.92,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4905.611328125,
"y": 4424.2236328125,
"x": 4905.61,
"y": 4424.22,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4893.77294921875,
"y": 4402.9775390625,
"x": 4893.77,
"y": 4402.98,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4878.89599609375,
"y": 4389.3935546875,
"x": 4878.9,
"y": 4389.39,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 4876.6748046875,
"y": 4370.005859375,
"x": 4876.67,
"y": 4370.01,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 4869.79248046875,
"y": 4379.73388671875,
"x": 4869.79,
"y": 4379.73,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 11,
"x": 4870.52685546875,
"y": 4367.8056640625,
"x": 4870.53,
"y": 4367.81,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 12,
"x": 4867.73095703125,
"y": 4280.0947265625,
"x": 4867.73,
"y": 4280.09,
"type": "path",
"move_mode": "swim",
"action": ""
},
{
"id": 13,
"x": 4868.03759765625,
"y": 4276.17724609375,
"x": 4868.04,
"y": 4276.18,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 14,
"x": 4866.1572265625,
"y": 4275.7177734375,
"x": 4866.16,
"y": 4275.72,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 15,
"x": 4984.81201171875,
"y": 4462.9541015625,
"x": 4984.81,
"y": 4462.95,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 16,
"x": 5133.841796875,
"y": 4582.04052734375,
"x": 5133.84,
"y": 4582.04,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 17,
"x": 5139.728515625,
"y": 4589.1123046875,
"x": 5139.73,
"y": 4589.11,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 18,
"x": 5139.35693359375,
"y": 4594.6474609375,
"x": 5139.36,
"y": 4594.65,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 19,
"x": 5120.0185546875,
"y": 4615.7822265625,
"x": 5120.02,
"y": 4615.78,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 20,
"x": 5108.107421875,
"y": 4644.2314453125,
"x": 5108.11,
"y": 4644.23,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 21,
"x": 5116.806640625,
"y": 4652.966796875,
"x": 5116.81,
"y": 4652.97,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 22,
"x": 5130.8515625,
"y": 4668.63427734375,
"x": 5130.85,
"y": 4668.63,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 23,
"x": 5129.17138671875,
"y": 4666.51220703125,
"x": 5129.17,
"y": 4666.51,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 24,
"x": 5132.0458984375,
"y": 4666.15283203125,
"x": 5132.05,
"y": 4666.15,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "宇寒",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,197 +13,197 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4143.86474609375,
"y": 4423.58349609375
"x": 4143.86,
"y": 4423.58
},
{
"id": 2,
"x": 4156.7001953125,
"y": 4428.7216796875,
"x": 4156.7,
"y": 4428.72,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4170.25927734375,
"y": 4424.7080078125,
"x": 4170.26,
"y": 4424.71,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 4174.623046875,
"y": 4421.8134765625,
"x": 4174.62,
"y": 4421.81,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4179.80224609375,
"y": 4421.49365234375,
"x": 4179.8,
"y": 4421.49,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4143.87548828125,
"y": 4423.5673828125,
"x": 4143.88,
"y": 4423.57,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4136.72119140625,
"y": 4419.30078125,
"x": 4136.72,
"y": 4419.3,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4132.30419921875,
"y": 4405.6484375,
"x": 4132.3,
"y": 4405.65,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 4138.45263671875,
"y": 4403.11767578125,
"x": 4138.45,
"y": 4403.12,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 4144.36279296875,
"y": 4412.7998046875,
"x": 4144.36,
"y": 4412.8,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 11,
"x": 4149.02685546875,
"y": 4432.39208984375,
"x": 4149.03,
"y": 4432.39,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 12,
"x": 4147.921875,
"y": 4432.67822265625,
"x": 4147.92,
"y": 4432.68,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 13,
"x": 4168.83056640625,
"y": 4425.61279296875,
"x": 4168.83,
"y": 4425.61,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 14,
"x": 4167.01611328125,
"y": 4420.68701171875,
"x": 4167.02,
"y": 4420.69,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 15,
"x": 4181.03515625,
"y": 4421.716796875,
"x": 4181.04,
"y": 4421.72,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 16,
"x": 4208.6513671875,
"y": 4419.57666015625,
"x": 4208.65,
"y": 4419.58,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 17,
"x": 4277.5888671875,
"y": 4435.365234375,
"x": 4277.59,
"y": 4435.37,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 18,
"x": 4309.0126953125,
"y": 4406.216796875,
"x": 4309.01,
"y": 4406.22,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 19,
"x": 4326.25439453125,
"y": 4428.4248046875,
"x": 4326.25,
"y": 4428.42,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 20,
"x": 4376.05712890625,
"y": 4420.375,
"x": 4376.06,
"y": 4420.38,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 21,
"x": 4379.45849609375,
"y": 4426.95458984375,
"x": 4379.46,
"y": 4426.95,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 22,
"x": 4385.39599609375,
"y": 4425.30078125,
"x": 4385.4,
"y": 4425.3,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 23,
"x": 4378.6142578125,
"y": 4404.21044921875,
"x": 4378.61,
"y": 4404.21,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 24,
"x": 4382.47802734375,
"y": 4398.1298828125,
"x": 4382.48,
"y": 4398.13,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 25,
"x": 4372.49658203125,
"y": 4395.0341796875,
"x": 4372.5,
"y": 4395.03,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -3,9 +3,9 @@
"name": "子探测单元-4(共6个)",
"type": "collect",
"author": "宇寒",
"version": "1.1",
"version": "1.0",
"description": "略",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,141 +13,141 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 3818.0673828125,
"y": 4950.0771484375
"x": 3818.07,
"y": 4950.08
},
{
"id": 2,
"x": 3821.64111328125,
"y": 4878.1396484375,
"x": 3821.64,
"y": 4878.14,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 3826.966796875,
"y": 4872.0478515625,
"x": 3826.97,
"y": 4872.05,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 3794.40283203125,
"y": 4811.63671875,
"x": 3794.4,
"y": 4811.64,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 3803.5498046875,
"y": 4811.53125,
"x": 3803.55,
"y": 4811.53,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 3811.1982421875,
"y": 4808.44970703125,
"x": 3811.2,
"y": 4808.45,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 4496.58203125,
"y": 4710.15966796875,
"x": 4496.58,
"y": 4710.16,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 4450.83984375,
"y": 4607.79833984375,
"x": 4450.84,
"y": 4607.8,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 4442.5712890625,
"y": 4586.13525390625,
"x": 4442.57,
"y": 4586.14,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 4435.8984375,
"y": 4586.375,
"x": 4435.9,
"y": 4586.38,
"type": "target",
"move_mode": "walk",
"action": "normal_attack"
},
{
"id": 11,
"x": 4439.63037109375,
"y": 4584.92919921875,
"x": 4439.63,
"y": 4584.93,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 12,
"x": 4428.89013671875,
"y": 4544.1904296875,
"x": 4428.89,
"y": 4544.19,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 13,
"x": 4415.65966796875,
"y": 4543.9453125,
"x": 4415.66,
"y": 4543.95,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 14,
"x": 4395.47509765625,
"y": 4560.767578125,
"x": 4395.48,
"y": 4560.77,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 15,
"x": 4300.98583984375,
"y": 4580.36083984375,
"x": 4300.99,
"y": 4580.36,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 16,
"x": 4290.802734375,
"y": 4597.6240234375,
"x": 4290.8,
"y": 4597.62,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 17,
"x": 4270.279296875,
"y": 4592.6455078125,
"x": 4270.28,
"y": 4592.65,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 18,
"x": 4265.001953125,
"y": 4588.224609375,
"x": 4265.0,
"y": 4588.22,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "宇寒",
"version": "1.0",
"description": "略",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,45 +13,45 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4624.37109375,
"y": 4951.73974609375
"x": 4624.37,
"y": 4951.74
},
{
"id": 2,
"x": 4678.09521484375,
"y": 4951.94970703125,
"x": 4678.1,
"y": 4951.95,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 4664.251953125,
"y": 4982.8388671875,
"x": 4664.25,
"y": 4982.84,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 4715.7802734375,
"y": 4912.98583984375,
"x": 4715.78,
"y": 4912.99,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 4730.07177734375,
"y": 4910.36181640625,
"x": 4730.07,
"y": 4910.36,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 4732.31640625,
"y": 4915.7529296875,
"x": 4732.32,
"y": 4915.75,
"type": "target",
"move_mode": "walk",
"action": ""