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": "san",
"version": "1.0",
"description": "漂浮零",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4254,
"y": -4798.038962480099
"x": -4254.0,
"y": -4798.04
},
{
"id": 2,
@@ -22,7 +22,7 @@
"move_mode": "fly",
"type": "path",
"x": -4088.25,
"y": -4848.513759027626
"y": -4848.51
},
{
"id": 3,
@@ -30,7 +30,7 @@
"move_mode": "swim",
"type": "path",
"x": -4104.75,
"y": -4848.998071164351
"y": -4849.0
},
{
"id": 4,
@@ -38,15 +38,15 @@
"move_mode": "run",
"type": "path",
"x": -4152.75,
"y": -4904.5937414125165
"y": -4904.59
},
{
"id": 5,
"action": "",
"move_mode": "run",
"type": "path",
"x": -4209,
"y": -4910.499742821914
"x": -4209.0,
"y": -4910.5
},
{
"id": 6,
@@ -54,7 +54,7 @@
"move_mode": "run",
"type": "path",
"x": -4212.5,
"y": -4887.084740179489
"y": -4887.08
},
{
"id": 7,
@@ -62,7 +62,7 @@
"move_mode": "run",
"type": "path",
"x": -4191.25,
"y": -4859.8207239737785
"y": -4859.82
}
]
}

View File

@@ -5,7 +5,7 @@
"author": "san",
"version": "1.0",
"description": "漂浮零",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -14,12 +14,12 @@
"move_mode": "walk",
"type": "teleport",
"x": -4478.5,
"y": -4576.586926193226
"y": -4576.59
},
{
"id": 2,
"x": -4505.25,
"y": -4610.994342082098,
"y": -4610.99,
"move_mode": "run"
},
{
@@ -28,30 +28,30 @@
"move_mode": "run",
"type": "path",
"x": -4507.25,
"y": -4615.2390699313255
"y": -4615.24
},
{
"id": 4,
"x": -4502.75,
"y": -4617.249485643828,
"y": -4617.25,
"move_mode": "run"
},
{
"id": 5,
"x": -4498.5,
"y": -4606.74717104105,
"y": -4606.75,
"move_mode": "run"
},
{
"id": 6,
"x": -4459.75,
"y": -4588.745499383487,
"y": -4588.75,
"move_mode": "run"
},
{
"id": 7,
"x": -4421.75,
"y": -4590.249871410957,
"y": -4590.25,
"move_mode": "fly"
},
{
@@ -59,8 +59,8 @@
"action": "fight",
"move_mode": "run",
"type": "path",
"x": -4415,
"y": -4583.249871410957
"x": -4415.0,
"y": -4583.25
}
]
}

View File

@@ -1,11 +1,11 @@
{
"info": {
"name": "平海砦",
"name": "漂浮灵-平海砦",
"type": "collect",
"author": "san",
"version": "1.0",
"description": "漂浮零",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4192,
"y": -4254.043334507569
"x": -4192.0,
"y": -4254.04
},
{
"id": 2,
@@ -22,7 +22,7 @@
"move_mode": "run",
"type": "path",
"x": -4216.5,
"y": -4190.260544301545
"y": -4190.26
}
]
}

View File

@@ -5,7 +5,7 @@
"author": "san",
"version": "1.0",
"description": "漂浮零",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -14,25 +14,25 @@
"move_mode": "walk",
"type": "teleport",
"x": -4188.5,
"y": -4258.090526686436
"y": -4258.09
},
{
"id": 2,
"x": -4164.75,
"y": -4280.504757794599
"y": -4280.5
},
{
"id": 3,
"x": -4165.75,
"y": -4289.50282895895
"y": -4289.5
},
{
"id": 4,
"action": "fight",
"move_mode": "run",
"type": "path",
"x": -4171,
"y": -4287.001285890432
"x": -4171.0,
"y": -4287.0
}
]
}

View File

@@ -5,7 +5,7 @@
"author": "san",
"version": "1.0",
"description": "漂浮零",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -14,18 +14,18 @@
"move_mode": "walk",
"type": "teleport",
"x": -4214.5,
"y": -4385.753729082255
"y": -4385.75
},
{
"id": 2,
"x": -4168.75,
"y": -4385.499614232871,
"y": -4385.5,
"move_mode": "run"
},
{
"id": 3,
"x": -4164.25,
"y": -4380.250257178086
"y": -4380.25
},
{
"id": 4,
@@ -33,7 +33,7 @@
"move_mode": "run",
"type": "path",
"x": -4173.5,
"y": -4377.999742821914
"y": -4378.0
}
]
}

View File

@@ -5,7 +5,7 @@
"author": "san",
"version": "1.0",
"description": "漂浮零",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,8 +13,8 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -2604,
"y": -6708.16305090682
"x": -2604.0,
"y": -6708.16
},
{
"id": 2,
@@ -22,7 +22,7 @@
"move_mode": "fly",
"type": "path",
"x": -2652.25,
"y": -6723.249485643828
"y": -6723.25
},
{
"id": 4,
@@ -30,30 +30,30 @@
"move_mode": "walk",
"type": "path",
"x": -2652.5,
"y": -6733.29294874044
"y": -6733.29
},
{
"id": 5,
"x": -2654.5,
"y": -6726.497685397222,
"y": -6726.5,
"move_mode": "walk"
},
{
"id": 6,
"x": -2646,
"y": -6731.996913862962,
"x": -2646.0,
"y": -6732.0,
"move_mode": "walk"
},
{
"id": 7,
"x": -2649.25,
"y": -6738.250514356172,
"y": -6738.25,
"move_mode": "walk"
},
{
"id": 8,
"x": -2656,
"y": -6739.998714109568,
"x": -2656.0,
"y": -6740.0,
"move_mode": "walk"
},
{
@@ -62,7 +62,7 @@
"move_mode": "walk",
"type": "path",
"x": -2656.25,
"y": -6722.746785273919
"y": -6722.75
}
]
}