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,93 +1,95 @@
{
"info":{
"name":"珊瑚珍珠-望泷村右上-9个",
"type":"collect",
"author":"黎歌"
},
"positions":[
{
"x":-1057.712890625,
"y":-3946.0009765625,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":-950.935546875,
"y":-3912.0751953125,
"type":"path",
"move_mode":"fly",
"action":""
},
{
"x":-950.8974609375,
"y":-3912.037109375,
"type":"target",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":-955.2724609375,
"y":-3906.185546875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-952.0615234375,
"y":-3902.318359375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-951.5224609375,
"y":-3894.296875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-949.4248046875,
"y":-3887.298828125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-957.6044921875,
"y":-3878.21484375,
"type":"path",
"move_mode":"fly",
"action":""
},
{
"x":-943.4013671875,
"y":-3837.8759765625,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-945.7958984375,
"y":-3830.7080078125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-984.3173828125,
"y":-3841.30859375,
"type":"target",
"move_mode":"swim",
"action":""
},
{
"x":-990.1357421875,
"y":-3843.0966796875,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "珊瑚珍珠1-望泷村右上-9个",
"type": "collect",
"author": "黎歌",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -1057.71,
"y": -3946.0,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -950.94,
"y": -3912.08,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"x": -950.9,
"y": -3912.04,
"type": "target",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -955.27,
"y": -3906.19,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -952.06,
"y": -3902.32,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -951.52,
"y": -3894.3,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -949.42,
"y": -3887.3,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -957.6,
"y": -3878.21,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"x": -943.4,
"y": -3837.88,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -945.8,
"y": -3830.71,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -984.32,
"y": -3841.31,
"type": "target",
"move_mode": "swim",
"action": ""
},
{
"x": -990.14,
"y": -3843.1,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,79 +1,81 @@
{
"info":{
"name":"珊瑚珍珠-珊瑚宫下-7个",
"type":"collect",
"author":"黎歌"
},
"positions":[
{
"x":-757.9296875,
"y":-3815.0908203125,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":-765.29296875,
"y":-3873.982421875,
"type":"path",
"move_mode":"fly",
"action":""
},
{
"x":-765.29296875,
"y":-3873.978515625,
"type":"path",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":-768.3056640625,
"y":-3876.8330078125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-811.513671875,
"y":-3889.033203125,
"type":"path",
"move_mode":"fly",
"action":""
},
{
"x":-811.515625,
"y":-3889.0263671875,
"type":"target",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":-837.400390625,
"y":-3887.24609375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-840.35546875,
"y":-3887.8955078125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-835.2138671875,
"y":-3868.142578125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-836.890625,
"y":-3866.6513671875,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "珊瑚珍珠2-珊瑚宫下-7个",
"type": "collect",
"author": "黎歌",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -757.93,
"y": -3815.09,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -765.29,
"y": -3873.98,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"x": -765.29,
"y": -3873.98,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -768.31,
"y": -3876.83,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -811.51,
"y": -3889.03,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"x": -811.52,
"y": -3889.03,
"type": "target",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -837.4,
"y": -3887.25,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -840.36,
"y": -3887.9,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -835.21,
"y": -3868.14,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -836.89,
"y": -3866.65,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,44 +1,46 @@
{
"info":{
"name":"珊瑚珍珠-珊瑚宫右-3个",
"type":"collect",
"author":"黎歌"
},
"positions":[
{
"x":-757.94140625,
"y":-3815.115234375,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":-868.2568359375,
"y":-3775.232421875,
"type":"path",
"move_mode":"fly",
"action":""
},
{
"x":-868.240234375,
"y":-3775.275390625,
"type":"target",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":-873.654296875,
"y":-3760.9501953125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-875.173828125,
"y":-3758.685546875,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "珊瑚珍珠3-珊瑚宫右-3个",
"type": "collect",
"author": "黎歌",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -757.94,
"y": -3815.12,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -868.26,
"y": -3775.23,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"x": -868.24,
"y": -3775.28,
"type": "target",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -873.65,
"y": -3760.95,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -875.17,
"y": -3758.69,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,114 +1,116 @@
{
"info":{
"name":"珊瑚珍珠-珊瑚宫上-12个",
"type":"collect",
"author":"黎歌"
},
"positions":[
{
"x":-765.7802734375,
"y":-3557.2998046875,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":-789.13671875,
"y":-3616.9072265625,
"type":"path",
"move_mode":"fly",
"action":""
},
{
"x":-789.13671875,
"y":-3616.908203125,
"type":"target",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":-783.4423828125,
"y":-3620.9326171875,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-780.955078125,
"y":-3622.7412109375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-776.9560546875,
"y":-3628.9658203125,
"type":"path",
"move_mode":"swim",
"action":""
},
{
"x":-763.994140625,
"y":-3653.908203125,
"type":"target",
"move_mode":"swim",
"action":""
},
{
"x":-767.7861328125,
"y":-3654.87890625,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-771.095703125,
"y":-3667.7412109375,
"type":"target",
"move_mode":"swim",
"action":""
},
{
"x":-780.80078125,
"y":-3693.5908203125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-775.265625,
"y":-3695.1474609375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-771.2958984375,
"y":-3695.361328125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-774.931640625,
"y":-3700.1767578125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-778.017578125,
"y":-3699.7412109375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-780.4208984375,
"y":-3716.333984375,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "珊瑚珍珠4-珊瑚宫上-12个",
"type": "collect",
"author": "黎歌",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -765.78,
"y": -3557.3,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -789.14,
"y": -3616.91,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"x": -789.14,
"y": -3616.91,
"type": "target",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -783.44,
"y": -3620.93,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -780.96,
"y": -3622.74,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -776.96,
"y": -3628.97,
"type": "path",
"move_mode": "swim",
"action": ""
},
{
"x": -763.99,
"y": -3653.91,
"type": "target",
"move_mode": "swim",
"action": ""
},
{
"x": -767.79,
"y": -3654.88,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -771.1,
"y": -3667.74,
"type": "target",
"move_mode": "swim",
"action": ""
},
{
"x": -780.8,
"y": -3693.59,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -775.27,
"y": -3695.15,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -771.3,
"y": -3695.36,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -774.93,
"y": -3700.18,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -778.02,
"y": -3699.74,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -780.42,
"y": -3716.33,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,86 +1,88 @@
{
"info":{
"name":"珊瑚珍珠-水月池-5个",
"type":"collect",
"author":"黎歌"
},
"positions":[
{
"x":-1134.51171875,
"y":-3604.994140625,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":-1146.9775390625,
"y":-3594.0947265625,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1152.869140625,
"y":-3578.7890625,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1157.2119140625,
"y":-3574.623046875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1166.87109375,
"y":-3573.1474609375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1146.3935546875,
"y":-3560.14453125,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1147.3056640625,
"y":-3547.8291015625,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1152.0078125,
"y":-3547.4091796875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1163.7666015625,
"y":-3546.46875,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1174.607421875,
"y":-3542.0908203125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1170.2998046875,
"y":-3536.791015625,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "珊瑚珍珠5-水月池-5个",
"type": "collect",
"author": "黎歌",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -1134.51,
"y": -3604.99,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -1146.98,
"y": -3594.09,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1152.87,
"y": -3578.79,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1157.21,
"y": -3574.62,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1166.87,
"y": -3573.15,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1146.39,
"y": -3560.14,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1147.31,
"y": -3547.83,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1152.01,
"y": -3547.41,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1163.77,
"y": -3546.47,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1174.61,
"y": -3542.09,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1170.3,
"y": -3536.79,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,107 +1,109 @@
{
"info":{
"name":"珊瑚珍珠-水月池下-6个",
"type":"collect",
"author":"黎歌"
},
"positions":[
{
"x":-1057.748046875,
"y":-3946.013671875,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":-1040.15625,
"y":-3939.06640625,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1038.1728515625,
"y":-3830.8896484375,
"type":"path",
"move_mode":"fly",
"action":""
},
{
"x":-1038.1728515625,
"y":-3830.8935546875,
"type":"path",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":-1039.7890625,
"y":-3820.634765625,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1060.509765625,
"y":-3820.7734375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1070.5576171875,
"y":-3799.6748046875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1072.4365234375,
"y":-3804.3779296875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1073.6005859375,
"y":-3824.2421875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1077.869140625,
"y":-3820.3701171875,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1087.517578125,
"y":-3832.1748046875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1093.0947265625,
"y":-3817.71875,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":-1112.912109375,
"y":-3832.345703125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":-1115.0283203125,
"y":-3832.3662109375,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "珊瑚珍珠6-水月池下-6个",
"type": "collect",
"author": "黎歌",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": -1057.75,
"y": -3946.01,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": -1040.16,
"y": -3939.07,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1038.17,
"y": -3830.89,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"x": -1038.17,
"y": -3830.89,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -1039.79,
"y": -3820.63,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1060.51,
"y": -3820.77,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1070.56,
"y": -3799.67,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1072.44,
"y": -3804.38,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1073.6,
"y": -3824.24,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1077.87,
"y": -3820.37,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1087.52,
"y": -3832.17,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1093.09,
"y": -3817.72,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": -1112.91,
"y": -3832.35,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -1115.03,
"y": -3832.37,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": -757.939453125,
"y": -3815.2099609375,
"x": -757.94,
"y": -3815.21,
"type": "teleport",
"move_mode": "walk",
"action": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": -765.8583984375,
"y": -3868.208984375,
"x": -765.86,
"y": -3868.21,
"type": "path",
"move_mode": "fly",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -766.9267578125,
"y": -3873.5419921875,
"x": -766.93,
"y": -3873.54,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -782.2470703125,
"y": -3885.34375,
"x": -782.25,
"y": -3885.34,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -811.7685546875,
"y": -3889.373046875,
"x": -811.77,
"y": -3889.37,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": -840.1708984375,
"y": -3887.158203125,
"x": -840.17,
"y": -3887.16,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": -836.2958984375,
"y": -3865.677734375,
"x": -836.3,
"y": -3865.68,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect",

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": -765.4873046875,
"y": -3557.892578125,
"x": -765.49,
"y": -3557.89,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": -765.1513671875,
"y": -3565.8388671875,
"x": -765.15,
"y": -3565.84,
"action": "",
"move_mode": "run",
"action_params": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": -766.7255859375,
"y": -3574.9609375,
"x": -766.73,
"y": -3574.96,
"action": "",
"move_mode": "run",
"action_params": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": -794.2373046875,
"y": -3608.087890625,
"x": -794.24,
"y": -3608.09,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": -789.9248046875,
"y": -3616.3671875,
"x": -789.92,
"y": -3616.37,
"action": "",
"move_mode": "swim",
"action_params": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": -779.974609375,
"y": -3623.375,
"x": -779.97,
"y": -3623.38,
"action": "nahida_collect",
"move_mode": "walk",
"action_params": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": -766.0732421875,
"y": -3654.419921875,
"x": -766.07,
"y": -3654.42,
"action": "nahida_collect",
"move_mode": "swim",
"action_params": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": -771.3046875,
"y": -3668.4921875,
"x": -771.3,
"y": -3668.49,
"action": "",
"move_mode": "swim",
"action_params": "",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": -788.552734375,
"y": -3688.3193359375,
"x": -788.55,
"y": -3688.32,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": -780.365234375,
"y": -3693.97265625,
"x": -780.37,
"y": -3693.97,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": -776.0732421875,
"y": -3698.3486328125,
"x": -776.07,
"y": -3698.35,
"action": "nahida_collect",
"move_mode": "walk",
"action_params": "",
@@ -109,8 +109,8 @@
},
{
"id": 12,
"x": -770.5703125,
"y": -3695.03125,
"x": -770.57,
"y": -3695.03,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": -780.3681640625,
"y": -3717.3447265625,
"x": -780.37,
"y": -3717.34,
"type": "target",
"move_mode": "walk",
"action": "",