fix: json data validation (#514)
* json data validation * 使用 jsonDataValidation 自动更正 * fix: 字段缺失时补全而不是报错
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "茉洁站右上(6)",
|
||||
"name": "dn01茉洁站右上(6)",
|
||||
"type": "collect",
|
||||
"author": "下流山汉",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,14 +13,14 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 3635.4619140625,
|
||||
"y": 3801.439697265625,
|
||||
"x": 3635.46,
|
||||
"y": 3801.44,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 3623.9208984375,
|
||||
"y": 3816.00634765625,
|
||||
"x": 3623.92,
|
||||
"y": 3816.01,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying",
|
||||
@@ -29,8 +29,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 3575.2353515625,
|
||||
"y": 3841.05908203125,
|
||||
"x": 3575.24,
|
||||
"y": 3841.06,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "fight",
|
||||
@@ -38,8 +38,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 3568.423828125,
|
||||
"y": 3853.118896484375,
|
||||
"x": 3568.42,
|
||||
"y": 3853.12,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -47,8 +47,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 3574.3779296875,
|
||||
"y": 3880.26806640625,
|
||||
"x": 3574.38,
|
||||
"y": 3880.27,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -56,8 +56,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 3553.2548828125,
|
||||
"y": 3897.792236328125,
|
||||
"x": 3553.25,
|
||||
"y": 3897.79,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -65,8 +65,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 3525.5400390625,
|
||||
"y": 3911.21142578125,
|
||||
"x": 3525.54,
|
||||
"y": 3911.21,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "fight",
|
||||
@@ -74,8 +74,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": 3523.2060546875,
|
||||
"y": 3921.721435546875,
|
||||
"x": 3523.21,
|
||||
"y": 3921.72,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -83,8 +83,8 @@
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": 3520.728515625,
|
||||
"y": 3938.481689453125,
|
||||
"x": 3520.73,
|
||||
"y": 3938.48,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -92,8 +92,8 @@
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"x": 3520.396484375,
|
||||
"y": 3967.20068359375,
|
||||
"x": 3520.4,
|
||||
"y": 3967.2,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "fight",
|
||||
|
||||
Reference in New Issue
Block a user