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,100 +1,102 @@
{
"info":{
"name":"霓裳花_望舒客栈",
"type":"collect",
"author":"tignioj"
},
"positions":[
{
"x":328.97265625,
"y":873.5810546875,
"type":"teleport",
"move_mode":"walk",
"action":""
},
{
"x":275.62890625,
"y":864.5263671875,
"type":"path",
"move_mode":"fly",
"action":"stop_flying"
},
{
"x":267.62841796875,
"y":860.529296875,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":285.18603515625,
"y":887.50830078125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":274.716796875,
"y":914.677734375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":301.8505859375,
"y":937.80859375,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":284.09130859375,
"y":945.5078125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":293.755859375,
"y":939.52783203125,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":308.94873046875,
"y":962.224609375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":337.49951171875,
"y":994.7412109375,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":352.61376953125,
"y":1010.853515625,
"type":"path",
"move_mode":"walk",
"action":""
},
{
"x":349.08740234375,
"y":1020.06298828125,
"type":"target",
"move_mode":"walk",
"action":""
},
{
"x":380.65087890625,
"y":1032.58544921875,
"type":"target",
"move_mode":"walk",
"action":""
}
]
"info": {
"name": "霓裳花_望舒客栈_璃月_7个",
"type": "collect",
"author": "tignioj",
"version": "1.0",
"bgiVersion": "v0.42.0"
},
"positions": [
{
"x": 328.97,
"y": 873.58,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"x": 275.63,
"y": 864.53,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": 267.63,
"y": 860.53,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 285.19,
"y": 887.51,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 274.72,
"y": 914.68,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 301.85,
"y": 937.81,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 284.09,
"y": 945.51,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 293.76,
"y": 939.53,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 308.95,
"y": 962.22,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 337.5,
"y": 994.74,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 352.61,
"y": 1010.85,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"x": 349.09,
"y": 1020.06,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": 380.65,
"y": 1032.59,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": 508.025390625,
"y": -630.4619140625,
"x": 508.03,
"y": -630.46,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": 451.9140625,
"y": -607.2783203125,
"x": 451.91,
"y": -607.28,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 447.6650390625,
"y": -608.15380859375,
"x": 447.67,
"y": -608.15,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 439.3076171875,
"y": -605.95068359375,
"x": 439.31,
"y": -605.95,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 431.93359375,
"y": -607.087890625,
"x": 431.93,
"y": -607.09,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 411.9931640625,
"y": -590.89990234375,
"x": 411.99,
"y": -590.9,
"action": "",
"move_mode": "run",
"action_params": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": 411.1689453125,
"y": -587.92431640625,
"x": 411.17,
"y": -587.92,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": 410.2568359375,
"y": -585.34130859375,
"x": 410.26,
"y": -585.34,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": 410.7626953125,
"y": -586.56494140625,
"x": 410.76,
"y": -586.56,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": 414.01953125,
"y": -567.65380859375,
"x": 414.02,
"y": -567.65,
"action": "",
"move_mode": "run",
"action_params": "",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": 424.0302734375,
"y": -556.0185546875,
"x": 424.03,
"y": -556.02,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -109,8 +109,8 @@
},
{
"id": 12,
"x": 435.453125,
"y": -546.04443359375,
"x": 435.45,
"y": -546.04,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": 428.4228515625,
"y": -534.654296875,
"x": 428.42,
"y": -534.65,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -127,8 +127,8 @@
},
{
"id": 14,
"x": 439.3271484375,
"y": -538.59912109375,
"x": 439.33,
"y": -538.6,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -136,8 +136,8 @@
},
{
"id": 15,
"x": 478.2353515625,
"y": -532.8798828125,
"x": 478.24,
"y": -532.88,
"action": "",
"move_mode": "run",
"action_params": "",
@@ -145,8 +145,8 @@
},
{
"id": 16,
"x": 499.623046875,
"y": -519.75537109375,
"x": 499.62,
"y": -519.76,
"action": "",
"move_mode": "walk",
"action_params": "",