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,17 +1,17 @@
{
"info": {
"name": "天云峠9只",
"name": "天云峠9只 ",
"type": "collect",
"author": "baixi",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": -4170.55078125,
"y": -4571.3642578125,
"x": -4170.55,
"y": -4571.36,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": -4160.056640625,
"y": -4578.4560546875,
"x": -4160.06,
"y": -4578.46,
"action": "",
"move_mode": "fly",
"action_params": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -4111.19140625,
"y": -4599.8486328125,
"x": -4111.19,
"y": -4599.85,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -4120.96484375,
"y": -4620.978515625,
"x": -4120.96,
"y": -4620.98,
"action": "",
"move_mode": "swim",
"action_params": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -4144.86328125,
"y": -4608.490234375,
"x": -4144.86,
"y": -4608.49,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": -4158.48828125,
"y": -4609.00390625,
"x": -4158.49,
"y": -4609.0,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": -4169.849609375,
"y": -4616.462890625,
"x": -4169.85,
"y": -4616.46,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": -4172.46875,
"y": -4646.0927734375,
"x": -4172.47,
"y": -4646.09,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -82,16 +82,16 @@
},
{
"id": 9,
"x": -4185.14453125,
"y": -4674.9560546875,
"x": -4185.14,
"y": -4674.96,
"action": "fight",
"move_mode": "walk",
"type": "path"
},
{
"id": 10,
"x": -4187.1796875,
"y": -4688.6279296875,
"x": -4187.18,
"y": -4688.63,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -99,8 +99,8 @@
},
{
"id": 11,
"x": -4195.904296875,
"y": -4705.2900390625,
"x": -4195.9,
"y": -4705.29,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -108,8 +108,8 @@
},
{
"id": 12,
"x": -4204.578125,
"y": -4716.705078125,
"x": -4204.58,
"y": -4716.71,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -117,16 +117,16 @@
},
{
"id": 13,
"x": -4220.4765625,
"y": -4739.0234375,
"x": -4220.48,
"y": -4739.02,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 14,
"x": -4235.47265625,
"y": -4744.2392578125,
"x": -4235.47,
"y": -4744.24,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -134,16 +134,16 @@
},
{
"id": 15,
"x": -4272.720703125,
"y": -4752.38671875,
"x": -4272.72,
"y": -4752.39,
"action": "fight",
"move_mode": "walk",
"type": "path"
},
{
"id": 16,
"x": -4290.197265625,
"y": -4745.1181640625,
"x": -4290.2,
"y": -4745.12,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -151,8 +151,8 @@
},
{
"id": 17,
"x": -4310.126953125,
"y": -4726.986328125,
"x": -4310.13,
"y": -4726.99,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -160,16 +160,16 @@
},
{
"id": 18,
"x": -4318.326171875,
"y": -4703.931640625,
"x": -4318.33,
"y": -4703.93,
"action": "fight",
"move_mode": "walk",
"type": "path"
},
{
"id": 19,
"x": -4320.427734375,
"y": -4679.3740234375,
"x": -4320.43,
"y": -4679.37,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -177,8 +177,8 @@
},
{
"id": 20,
"x": -4320.134765625,
"y": -4666.94140625,
"x": -4320.13,
"y": -4666.94,
"action": "fight",
"move_mode": "walk",
"type": "path"

View File

@@ -5,7 +5,7 @@
"author": "baixi",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4185.912109375,
"y": -4383.6015625,
"x": -4185.91,
"y": -4383.6,
"action_params": ""
},
{
"id": 2,
"x": -4179.552734375,
"y": -4393.2099609375,
"x": -4179.55,
"y": -4393.21,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -4171.8671875,
"y": -4403.8740234375,
"x": -4171.87,
"y": -4403.87,
"type": "path",
"move_mode": "fly",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -4172.990234375,
"y": -4426.23828125,
"x": -4172.99,
"y": -4426.24,
"type": "path",
"move_mode": "fly",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -4203.439453125,
"y": -4451.93359375,
"x": -4203.44,
"y": -4451.93,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": -4184.1953125,
"y": -4468.1875,
"x": -4184.2,
"y": -4468.19,
"type": "path",
"move_mode": "swim",
"action": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": -4190.1015625,
"y": -4486.1259765625,
"x": -4190.1,
"y": -4486.13,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "baixi",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4184.74609375,
"y": -4244.765625,
"x": -4184.75,
"y": -4244.77,
"action_params": ""
},
{
"id": 2,
"x": -4174.8515625,
"y": -4260.3544921875,
"x": -4174.85,
"y": -4260.35,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -4159.892578125,
"y": -4281.24609375,
"x": -4159.89,
"y": -4281.25,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -4128.447265625,
"y": -4279.6298828125,
"x": -4128.45,
"y": -4279.63,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -4086.642578125,
"y": -4256.107421875,
"x": -4086.64,
"y": -4256.11,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": -4092.2509765625,
"y": -4234.63671875,
"x": -4092.25,
"y": -4234.64,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -1,11 +1,11 @@
{
"info": {
"name": "水月池7只",
"name": "水月池7只 ",
"type": "collect",
"author": "baixi",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -1133.865234375,
"y": -3605.177734375,
"x": -1133.87,
"y": -3605.18,
"action_params": ""
},
{
"id": 2,
"x": -1149.68359375,
"y": -3603.7158203125,
"x": -1149.68,
"y": -3603.72,
"type": "path",
"move_mode": "climb",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -1196.71484375,
"y": -3602.7138671875,
"x": -1196.71,
"y": -3602.71,
"type": "path",
"move_mode": "walk",
"action": "fight",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -1193.46875,
"y": -3602.3642578125,
"x": -1193.47,
"y": -3602.36,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -1169.240234375,
"y": -3576.279296875,
"x": -1169.24,
"y": -3576.28,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -55,16 +55,16 @@
},
{
"id": 6,
"x": -1180.603515625,
"y": -3562.5458984375,
"x": -1180.6,
"y": -3562.55,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 7,
"x": -1157.369140625,
"y": -3558.259765625,
"x": -1157.37,
"y": -3558.26,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -72,16 +72,16 @@
},
{
"id": 8,
"x": -1140.7119140625,
"y": -3545.8935546875,
"x": -1140.71,
"y": -3545.89,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 9,
"x": -1126.619140625,
"y": -3532.84375,
"x": -1126.62,
"y": -3532.84,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -89,8 +89,8 @@
},
{
"id": 10,
"x": -1110.98828125,
"y": -3505.517578125,
"x": -1110.99,
"y": -3505.52,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -98,8 +98,8 @@
},
{
"id": 11,
"x": -1104.716796875,
"y": -3507.3125,
"x": -1104.72,
"y": -3507.31,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -107,8 +107,8 @@
},
{
"id": 12,
"x": -1108.1455078125,
"y": -3513.3193359375,
"x": -1108.15,
"y": -3513.32,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -116,16 +116,16 @@
},
{
"id": 13,
"x": -1113.5712890625,
"y": -3510.396484375,
"x": -1113.57,
"y": -3510.4,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 14,
"x": -1105.720703125,
"y": -3519.2978515625,
"x": -1105.72,
"y": -3519.3,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -133,8 +133,8 @@
},
{
"id": 15,
"x": -1095.837890625,
"y": -3577.1279296875,
"x": -1095.84,
"y": -3577.13,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -142,16 +142,16 @@
},
{
"id": 16,
"x": -1097.33984375,
"y": -3640.4345703125,
"x": -1097.34,
"y": -3640.43,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 17,
"x": -1075.4287109375,
"y": -3670.10546875,
"x": -1075.43,
"y": -3670.11,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -159,8 +159,8 @@
},
{
"id": 18,
"x": -1047.841796875,
"y": -3690.6318359375,
"x": -1047.84,
"y": -3690.63,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -168,8 +168,8 @@
},
{
"id": 19,
"x": -1023.2978515625,
"y": -3668.4697265625,
"x": -1023.3,
"y": -3668.47,
"type": "path",
"move_mode": "swim",
"action": "",
@@ -177,8 +177,8 @@
},
{
"id": 20,
"x": -1012.021484375,
"y": -3663.7021484375,
"x": -1012.02,
"y": -3663.7,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "baixi",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4023.3115234375,
"y": -4428.7998046875,
"x": -4023.31,
"y": -4428.8,
"action_params": ""
},
{
"id": 2,
"x": -4022.2607421875,
"y": -4469.685546875,
"x": -4022.26,
"y": -4469.69,
"type": "path",
"move_mode": "walk",
"action": "fight"