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,7 +5,7 @@
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 1436.3935546875,
"y": 1289.85009765625,
"x": 1436.39,
"y": 1289.85,
"action_params": ""
},
{
"id": 2,
"x": 1430.6796875,
"y": 1304.4931640625,
"x": 1430.68,
"y": 1304.49,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 1416.8525390625,
"y": 1307.19384765625,
"x": 1416.85,
"y": 1307.19,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 1409.2353515625,
"y": 1306.94970703125,
"x": 1409.24,
"y": 1306.95,
"type": "path",
"move_mode": "climb",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 1394.2333984375,
"y": 1314.66748046875,
"x": 1394.23,
"y": 1314.67,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 1390.228515625,
"y": 1322.45703125,
"x": 1390.23,
"y": 1322.46,
"type": "target",
"move_mode": "climb",
"action": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": 1380.865234375,
"y": 1328.38720703125,
"x": 1380.87,
"y": 1328.39,
"type": "target",
"move_mode": "walk",
"action": "",

View File

@@ -5,7 +5,7 @@
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 1474.572265625,
"y": 763.693359375,
"x": 1474.57,
"y": 763.69,
"action_params": ""
},
{
"id": 2,
"x": 1467.2880859375,
"y": 763.23486328125,
"x": 1467.29,
"y": 763.23,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 1470.9755859375,
"y": 758.404296875,
"x": 1470.98,
"y": 758.4,
"type": "target",
"move_mode": "walk",
"action": "",

View File

@@ -5,7 +5,7 @@
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 828.2529296875,
"y": -583.44775390625,
"x": 828.25,
"y": -583.45,
"action_params": ""
},
{
"id": 2,
"x": 814.12890625,
"y": -598.51513671875,
"x": 814.13,
"y": -598.52,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 848.3701171875,
"y": -592.482421875,
"x": 848.37,
"y": -592.48,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 945.2900390625,
"y": -572.037109375,
"x": 945.29,
"y": -572.04,
"type": "target",
"move_mode": "fly",
"action": "stop_flying",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 949.9833984375,
"y": -575.45458984375,
"x": 949.98,
"y": -575.45,
"type": "target",
"move_mode": "walk",
"action": "",

View File

@@ -5,13 +5,13 @@
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 1794.205078125,
"y": 717.435546875,
"x": 1794.21,
"y": 717.44,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": 1791.1259765625,
"y": 732.8994140625,
"x": 1791.13,
"y": 732.9,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 1799.7822265625,
"y": 775.37158203125,
"x": 1799.78,
"y": 775.37,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 1794.1572265625,
"y": 783.82763671875,
"x": 1794.16,
"y": 783.83,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 1763.880859375,
"y": 845.65087890625,
"x": 1763.88,
"y": 845.65,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 1762.01171875,
"y": 845.62841796875,
"x": 1762.01,
"y": 845.63,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": 1765.2431640625,
"y": 850.25927734375,
"x": 1765.24,
"y": 850.26,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": 1758.544921875,
"y": 849.3779296875,
"x": 1758.54,
"y": 849.38,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": 1794.205078125,
"y": 717.435546875,
"x": 1794.21,
"y": 717.44,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": 1782.2587890625,
"y": 710.30224609375,
"x": 1782.26,
"y": 710.3,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": 1691.091796875,
"y": 716.49609375,
"x": 1691.09,
"y": 716.5,
"action": "",
"move_mode": "fly",
"action_params": "",
@@ -110,8 +110,8 @@
},
{
"id": 12,
"x": 1691.091796875,
"y": 716.49609375,
"x": 1691.09,
"y": 716.5,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",

View File

@@ -5,7 +5,7 @@
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,14 +13,14 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 978.693359375,
"y": -353.5751953125,
"x": 978.69,
"y": -353.58,
"action_params": ""
},
{
"id": 2,
"x": 984.1865234375,
"y": -355.40234375,
"x": 984.19,
"y": -355.4,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 988.6611328125,
"y": -357.5380859375,
"x": 988.66,
"y": -357.54,
"type": "path",
"move_mode": "climb",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 991.9091796875,
"y": -360.11962890625,
"x": 991.91,
"y": -360.12,
"type": "target",
"move_mode": "walk",
"action": "",