fix: json data validation (#514)
* json data validation * 使用 jsonDataValidation 自动更正 * fix: 字段缺失时补全而不是报错
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "骗骗花",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,16 +13,16 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 622,
|
||||
"y": -298.4753109036992
|
||||
"x": 622.0,
|
||||
"y": -298.48
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": 594,
|
||||
"y": -345.49948564382703
|
||||
"x": 594.0,
|
||||
"y": -345.5
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
@@ -30,7 +30,7 @@
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 593.75,
|
||||
"y": -356.75192883564887
|
||||
"y": -356.75
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,8 +13,8 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 38,
|
||||
"y": 127.71476660215467
|
||||
"x": 38.0,
|
||||
"y": 127.71
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
@@ -22,7 +22,7 @@
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": 32.25,
|
||||
"y": 306.7833045621974
|
||||
"y": 306.78
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
@@ -30,7 +30,7 @@
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 46.75,
|
||||
"y": 340.5028289589509
|
||||
"y": 340.5
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "骗骗花",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -14,7 +14,7 @@
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 36.25,
|
||||
"y": 129.88452703917756
|
||||
"y": 129.88
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
@@ -22,7 +22,7 @@
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": -29.25,
|
||||
"y": 132.00617227407474
|
||||
"y": 132.01
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
@@ -30,7 +30,7 @@
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": -48.75,
|
||||
"y": 143.51195878102044
|
||||
"y": 143.51
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,19 +13,19 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 260,
|
||||
"y": -26.89198520368518
|
||||
"x": 260.0,
|
||||
"y": -26.89
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 273.5,
|
||||
"y": -22.253729082253813,
|
||||
"y": -22.25,
|
||||
"move_mode": "run"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 274,
|
||||
"y": 167.01620221944722,
|
||||
"x": 274.0,
|
||||
"y": 167.02,
|
||||
"move_mode": "run",
|
||||
"action": ""
|
||||
},
|
||||
@@ -34,16 +34,16 @@
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 293,
|
||||
"y": 171.2098573185549
|
||||
"x": 293.0,
|
||||
"y": 171.21
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": 308,
|
||||
"y": 195.2222018667053
|
||||
"x": 308.0,
|
||||
"y": 195.22
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
@@ -51,7 +51,7 @@
|
||||
"move_mode": "walk",
|
||||
"type": "path",
|
||||
"x": 312.5,
|
||||
"y": 186.24292760262233
|
||||
"y": 186.24
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "骗骗",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,16 +13,16 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 718.9648083433167,
|
||||
"y": 1070.4321049851733
|
||||
"x": 718.96,
|
||||
"y": 1070.43
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"action": "fight",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 713.2501454200683,
|
||||
"y": 1079.500257178086
|
||||
"x": 713.25,
|
||||
"y": 1079.5
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,29 +5,29 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 838,
|
||||
"y": 237.49490223818248,
|
||||
"x": 838.0,
|
||||
"y": 237.49,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 854,
|
||||
"y": 197.24972360275206,
|
||||
"x": 854.0,
|
||||
"y": 197.25,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 886,
|
||||
"y": 213.482557690033,
|
||||
"x": 886.0,
|
||||
"y": 213.48,
|
||||
"action": "fight",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "骗骗花",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,21 +13,21 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 1142.999315123856,
|
||||
"y": 137.02542854685362
|
||||
"x": 1143.0,
|
||||
"y": 137.03
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 1101.7502568285545,
|
||||
"y": 111.5003316766979
|
||||
"x": 1101.75,
|
||||
"y": 111.5
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 1102.5000526827807,
|
||||
"y": 135.9985627343085,
|
||||
"x": 1102.5,
|
||||
"y": 136.0,
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"action": "fight"
|
||||
@@ -37,13 +37,13 @@
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 1071.0001580483404,
|
||||
"y": 188.5021006190882
|
||||
"x": 1071.0,
|
||||
"y": 188.5
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 1044.4998946344404,
|
||||
"y": 213.0014372656915,
|
||||
"x": 1044.5,
|
||||
"y": 213.0,
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
@@ -52,16 +52,16 @@
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 989.9985465670761,
|
||||
"y": 187.4956882029246
|
||||
"x": 990.0,
|
||||
"y": 187.5
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"action": "fight",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 972.0003687794615,
|
||||
"y": 183.9988944110064
|
||||
"x": 972.0,
|
||||
"y": 184.0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "骗骗花",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,16 +13,16 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 1148,
|
||||
"y": 133.24894969045636
|
||||
"x": 1148.0,
|
||||
"y": 133.25
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"action": "fight",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": 1105.7509812167827,
|
||||
"y": 37.49115528805123
|
||||
"x": 1105.75,
|
||||
"y": 37.49
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "骗骗花",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,16 +13,16 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": -2004,
|
||||
"y": 1441.1992073279234
|
||||
"x": -2004.0,
|
||||
"y": 1441.2
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": -1970,
|
||||
"y": 1466.252700369907
|
||||
"x": -1970.0,
|
||||
"y": 1466.25
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
@@ -30,15 +30,15 @@
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": -1937.5,
|
||||
"y": 1470.9645094240677
|
||||
"y": 1470.96
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"action": "fight",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": -1949,
|
||||
"y": 1497.0050149726867
|
||||
"x": -1949.0,
|
||||
"y": 1497.01
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "san",
|
||||
"version": "1.0",
|
||||
"description": "骗骗花",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -14,23 +14,23 @@
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": -1541.5,
|
||||
"y": 1981.9061299984405
|
||||
"y": 1981.91
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"action": "",
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": -1596,
|
||||
"y": 2064.9691386296236
|
||||
"x": -1596.0,
|
||||
"y": 2064.97
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": -1612,
|
||||
"y": 2078.4871410956766
|
||||
"x": -1612.0,
|
||||
"y": 2078.49
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
@@ -38,12 +38,12 @@
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": -1623.5,
|
||||
"y": 2091.5074581645076
|
||||
"y": 2091.51
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -1631.5,
|
||||
"y": 2069.002828958952,
|
||||
"y": 2069.0,
|
||||
"move_mode": "run"
|
||||
},
|
||||
{
|
||||
@@ -52,15 +52,15 @@
|
||||
"move_mode": "fly",
|
||||
"type": "path",
|
||||
"x": -1625.5,
|
||||
"y": 1994.9958851506162
|
||||
"y": 1995.0
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"action": "fight",
|
||||
"move_mode": "run",
|
||||
"type": "path",
|
||||
"x": -1618,
|
||||
"y": 1977.0095155891995
|
||||
"x": -1618.0,
|
||||
"y": 1977.01
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user