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,21 +5,21 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 4036.22509765625,
"y": -2465.103515625,
"x": 4036.23,
"y": -2465.1,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 3946.5859375,
"y": -2461.8232421875,
"x": 3946.59,
"y": -2461.82,
"action": "nahida_collect",
"move_mode": "walk",
"type": "path"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4036.23388671875,
"y": -2464.9931640625
"x": 4036.23,
"y": -2464.99
},
{
"id": 2,
"x": 4195.82470703125,
"y": -2454.8876953125,
"x": 4195.82,
"y": -2454.89,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": 4197.03466796875,
"y": -2457.1220703125,
"x": 4197.03,
"y": -2457.12,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"
},
{
"id": 4,
"x": 4211.4931640625,
"y": -2473.4228515625,
"x": 4211.49,
"y": -2473.42,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 3993.14501953125,
"y": -1989.54296875
"x": 3993.15,
"y": -1989.54
},
{
"id": 2,
"x": 3949.0908203125,
"y": -1961.970703125,
"x": 3949.09,
"y": -1961.97,
"type": "path",
"move_mode": "run",
"action": ""
},
{
"id": 3,
"x": 3941.435546875,
"y": -1928.69873046875,
"x": 3941.44,
"y": -1928.7,
"type": "path",
"move_mode": "run",
"action": ""
},
{
"id": 4,
"x": 3976.64111328125,
"y": -1875.18505859375,
"x": 3976.64,
"y": -1875.19,
"type": "path",
"move_mode": "run",
"action": "nahida_collect"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,13 +13,13 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4096.048828125,
"y": -2025.97900390625
"x": 4096.05,
"y": -2025.98
},
{
"id": 2,
"x": 4108.111328125,
"y": -2000.1328125,
"x": 4108.11,
"y": -2000.13,
"type": "path",
"move_mode": "run",
"action": "nahida_collect"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,24 +13,24 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 5047.96337890625,
"y": -1794.52734375
"x": 5047.96,
"y": -1794.53
},
{
"id": 2,
"x": 5086.76513671875,
"y": -1746.025390625,
"x": 5086.77,
"y": -1746.03,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 2,
"x": 5086.76513671875,
"y": -1746.025390625,
"x": 5086.77,
"y": -1746.03,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"
}
]
}
}

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,45 +13,45 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4794.99267578125,
"y": -2577.224609375
"x": 4794.99,
"y": -2577.22
},
{
"id": 2,
"x": 4865.3046875,
"y": -2531.90625,
"x": 4865.3,
"y": -2531.91,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": 4868.34326171875,
"y": -2531.7041015625,
"x": 4868.34,
"y": -2531.7,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"
},
{
"id": 4,
"x": 4819.38623046875,
"y": -2500.2607421875,
"x": 4819.39,
"y": -2500.26,
"type": "path",
"move_mode": "run",
"action": ""
},
{
"id": 5,
"x": 4811.634765625,
"y": -2477.826171875,
"x": 4811.63,
"y": -2477.83,
"type": "path",
"move_mode": "run",
"action": ""
},
{
"id": 6,
"x": 4775.2431640625,
"y": -2482.8134765625,
"x": 4775.24,
"y": -2482.81,
"type": "path",
"move_mode": "run",
"action": "nahida_collect"