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,65 +1,67 @@
{
"info":{
"name":"柔灯铃——1",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":4146.66357421875,
"y":2606.281494140625,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":4153.7744140625,
"y":2584.576416015625,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4159.55224609375,
"y":2566.95751953125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4157.09619140625,
"y":2504.782470703125,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4187.63134765625,
"y":2432.754638671875,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4160.5283203125,
"y":2380.851318359375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4138.83056640625,
"y":2370.1337890625,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4132.01611328125,
"y":2365.214599609375,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——1——12个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 4146.66,
"y": 2606.28,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 4153.77,
"y": 2584.58,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4159.55,
"y": 2566.96,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4157.1,
"y": 2504.78,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4187.63,
"y": 2432.75,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4160.53,
"y": 2380.85,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4138.83,
"y": 2370.13,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4132.02,
"y": 2365.21,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,37 +1,39 @@
{
"info":{
"name":"柔灯铃——2",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":4689.41357421875,
"y":2429.447998046875,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":4679.43505859375,
"y":2401.235595703125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4675.0830078125,
"y":2389.546875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4680.81201171875,
"y":2372.09521484375,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——2——9个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 4689.41,
"y": 2429.45,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 4679.44,
"y": 2401.24,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4675.08,
"y": 2389.55,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4680.81,
"y": 2372.1,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,37 +1,39 @@
{
"info":{
"name":"柔灯铃——3",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":5117.53271484375,
"y":2543.358154296875,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":5085.943359375,
"y":2548.201904296875,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":5067.63916015625,
"y":2556.472412109375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":5067.4970703125,
"y":2551.6181640625,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——3——3个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 5117.53,
"y": 2543.36,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 5085.94,
"y": 2548.2,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 5067.64,
"y": 2556.47,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 5067.5,
"y": 2551.62,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,44 +1,46 @@
{
"info":{
"name":"柔灯铃——4",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":4955.7734375,
"y":2760.50439453125,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":4862.341796875,
"y":2768.230712890625,
"type":"target",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":4848.8349609375,
"y":2769.759521484375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4844.630859375,
"y":2779.06591796875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4822.5107421875,
"y":2766.037353515625,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——4——9个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 4955.77,
"y": 2760.5,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 4862.34,
"y": 2768.23,
"type": "target",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 4848.83,
"y": 2769.76,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4844.63,
"y": 2779.07,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4822.51,
"y": 2766.04,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,37 +1,39 @@
{
"info":{
"name":"柔灯铃——5",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":4705.572265625,
"y":2951.587890625,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":4725.70947265625,
"y":2965.606689453125,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4758.9140625,
"y":2956.97021484375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4757.32568359375,
"y":2948.7392578125,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——5——6个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 4705.57,
"y": 2951.59,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 4725.71,
"y": 2965.61,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4758.91,
"y": 2956.97,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4757.33,
"y": 2948.74,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,100 +1,102 @@
{
"info":{
"name":"柔灯铃——6",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":4701.36181640625,
"y":3958.804443359375,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":4690.7470703125,
"y":3981.407958984375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4617.51953125,
"y":4011.845703125,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4577.3916015625,
"y":4000.721923828125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4573.552734375,
"y":3939.84228515625,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4567.357421875,
"y":3924.633544921875,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4563.23876953125,
"y":3903.814208984375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4578.63916015625,
"y":3905.292236328125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4582.92529296875,
"y":3900.796875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4556.140625,
"y":3881.117431640625,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4588.14208984375,
"y":3860.62353515625,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":4538.59716796875,
"y":3817.6552734375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":4502.47900390625,
"y":3826.831298828125,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——6——27个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 4701.36,
"y": 3958.8,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 4690.75,
"y": 3981.41,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4617.52,
"y": 4011.85,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4577.39,
"y": 4000.72,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4573.55,
"y": 3939.84,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4567.36,
"y": 3924.63,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4563.24,
"y": 3903.81,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4578.64,
"y": 3905.29,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4582.93,
"y": 3900.8,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4556.14,
"y": 3881.12,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4588.14,
"y": 3860.62,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 4538.6,
"y": 3817.66,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 4502.48,
"y": 3826.83,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,23 +1,25 @@
{
"info":{
"name":"柔灯铃——7",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":3635.5400390625,
"y":3801.49462890625,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":3605.67919921875,
"y":3774.592041015625,
"type":"target",
"move_mode":"fly",
"action":"stop_flying"
}
]
"info": {
"name": "柔灯铃——7——6个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3635.54,
"y": 3801.49,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 3605.68,
"y": 3774.59,
"type": "target",
"move_mode": "fly",
"action": "stop_flying"
}
]
}

View File

@@ -1,37 +1,39 @@
{
"info":{
"name":"柔灯铃——8",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":3635.4814453125,
"y":3801.41357421875,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":3676.76318359375,
"y":3810.294189453125,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":3701.5537109375,
"y":3836.571044921875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":3725.26025390625,
"y":3881.94482421875,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——8——9个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3635.48,
"y": 3801.41,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 3676.76,
"y": 3810.29,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 3701.55,
"y": 3836.57,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 3725.26,
"y": 3881.94,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,44 +1,46 @@
{
"info":{
"name":"柔灯铃——9",
"type":"collect",
"author":"透明人"
},
"positions":[
{
"x":3955.306640625,
"y":2869.151123046875,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":3978.11181640625,
"y":2813.891357421875,
"type":"target",
"move_mode":"fly",
"action":""
},
{
"x":3974.40185546875,
"y":2809.826904296875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":3987.7705078125,
"y":2782.486328125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":3991.26953125,
"y":2774.407958984375,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "柔灯铃——9——6个",
"type": "collect",
"author": "透明人",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 3955.31,
"y": 2869.15,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 3978.11,
"y": 2813.89,
"type": "target",
"move_mode": "fly",
"action": ""
},
{
"x": 3974.4,
"y": 2809.83,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 3987.77,
"y": 2782.49,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 3991.27,
"y": 2774.41,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}