fix: json data validation (#514)
* json data validation * 使用 jsonDataValidation 自动更正 * fix: 字段缺失时补全而不是报错
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,14 +13,14 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": -309.4580078125,
|
||||
"y": 1477.30810546875,
|
||||
"x": -309.46,
|
||||
"y": 1477.31,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -309.513671875,
|
||||
"y": 1477.24609375,
|
||||
"x": -309.51,
|
||||
"y": 1477.25,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -284.8818359375,
|
||||
"y": 1484.38232421875,
|
||||
"x": -284.88,
|
||||
"y": 1484.38,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -266.30859375,
|
||||
"y": 1518.958984375,
|
||||
"x": -266.31,
|
||||
"y": 1518.96,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -247.384765625,
|
||||
"y": 1551.39208984375,
|
||||
"x": -247.38,
|
||||
"y": 1551.39,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": -261.7451171875,
|
||||
"y": 1600.22119140625,
|
||||
"x": -261.75,
|
||||
"y": 1600.22,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": -255.849609375,
|
||||
"y": 1594.18994140625,
|
||||
"x": -255.85,
|
||||
"y": 1594.19,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -73,8 +73,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": -263.5048828125,
|
||||
"y": 1596.72265625,
|
||||
"x": -263.5,
|
||||
"y": 1596.72,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 2537.8427734375,
|
||||
"y": -522.88671875,
|
||||
"x": 2537.84,
|
||||
"y": -522.89,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -19,8 +19,8 @@
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 2537.2431640625,
|
||||
"y": -508.04345703125,
|
||||
"x": 2537.24,
|
||||
"y": -508.04,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 2534.3798828125,
|
||||
"y": -517.193359375,
|
||||
"x": 2534.38,
|
||||
"y": -517.19,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 2529.6005859375,
|
||||
"y": -508.00927734375,
|
||||
"x": 2529.6,
|
||||
"y": -508.01,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 2528.2138671875,
|
||||
"y": -513.0693359375,
|
||||
"x": 2528.21,
|
||||
"y": -513.07,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 2535.3837890625,
|
||||
"y": -519.88720703125,
|
||||
"x": 2535.38,
|
||||
"y": -519.89,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 2533.349609375,
|
||||
"y": -503.1953125,
|
||||
"x": 2533.35,
|
||||
"y": -503.2,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -73,8 +73,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": 2521.302734375,
|
||||
"y": -499.5615234375,
|
||||
"x": 2521.3,
|
||||
"y": -499.56,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -82,8 +82,8 @@
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": 2520.6826171875,
|
||||
"y": -470.361328125,
|
||||
"x": 2520.68,
|
||||
"y": -470.36,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,14 +13,14 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 1043.2158203125,
|
||||
"y": -558.0546875,
|
||||
"x": 1043.22,
|
||||
"y": -558.05,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 1072.73046875,
|
||||
"y": -617.14404296875,
|
||||
"x": 1072.73,
|
||||
"y": -617.14,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 1078.4248046875,
|
||||
"y": -608.4794921875,
|
||||
"x": 1078.42,
|
||||
"y": -608.48,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 1129.7216796875,
|
||||
"y": -624.76171875,
|
||||
"x": 1129.72,
|
||||
"y": -624.76,
|
||||
"type": "path",
|
||||
"move_mode": "swim",
|
||||
"action": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 1142.6162109375,
|
||||
"y": -629.833984375,
|
||||
"x": 1142.62,
|
||||
"y": -629.83,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 1132.2060546875,
|
||||
"y": -629.888671875,
|
||||
"x": 1132.21,
|
||||
"y": -629.89,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 1139.970703125,
|
||||
"y": -635.49365234375,
|
||||
"x": 1139.97,
|
||||
"y": -635.49,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -73,8 +73,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": 1131.865234375,
|
||||
"y": -633.36865234375,
|
||||
"x": 1131.87,
|
||||
"y": -633.37,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "甘露花海1到2青蛙",
|
||||
"name": "甘露花海2青蛙",
|
||||
"type": "collect",
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 5671.32861328125,
|
||||
"y": 418.54443359375,
|
||||
"x": 5671.33,
|
||||
"y": 418.54,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -19,8 +19,8 @@
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 5678.33740234375,
|
||||
"y": 414.79296875,
|
||||
"x": 5678.34,
|
||||
"y": 414.79,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 5668.4873046875,
|
||||
"y": 412.12255859375,
|
||||
"x": 5668.49,
|
||||
"y": 412.12,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 5672.12841796875,
|
||||
"y": 403.42626953125,
|
||||
"x": 5672.13,
|
||||
"y": 403.43,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 5666.04443359375,
|
||||
"y": 404.88671875,
|
||||
"x": 5666.04,
|
||||
"y": 404.89,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 5665.4970703125,
|
||||
"y": 400.0615234375,
|
||||
"x": 5665.5,
|
||||
"y": 400.06,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 5672.03564453125,
|
||||
"y": 417.73046875,
|
||||
"x": 5672.04,
|
||||
"y": 417.73,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 2738.80859375,
|
||||
"y": -817.27490234375,
|
||||
"x": 2738.81,
|
||||
"y": -817.27,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -19,8 +19,8 @@
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 2740.3642578125,
|
||||
"y": -782.19580078125,
|
||||
"x": 2740.36,
|
||||
"y": -782.2,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 2738.7998046875,
|
||||
"y": -817.2626953125,
|
||||
"x": 2738.8,
|
||||
"y": -817.26,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 2737.515625,
|
||||
"y": -828.26318359375,
|
||||
"x": 2737.52,
|
||||
"y": -828.26,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "群玉阁左锚点2到5青蛙",
|
||||
"name": "群玉阁左锚点5青蛙",
|
||||
"type": "collect",
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,14 +13,14 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 710.8046875,
|
||||
"y": -772.353515625,
|
||||
"x": 710.8,
|
||||
"y": -772.35,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 696.3486328125,
|
||||
"y": -753.32861328125,
|
||||
"x": 696.35,
|
||||
"y": -753.33,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 692.904296875,
|
||||
"y": -752.77001953125,
|
||||
"x": 692.9,
|
||||
"y": -752.77,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 668.3095703125,
|
||||
"y": -733.712890625,
|
||||
"x": 668.31,
|
||||
"y": -733.71,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 656.0751953125,
|
||||
"y": -722.98291015625,
|
||||
"x": 656.08,
|
||||
"y": -722.98,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 651.2685546875,
|
||||
"y": -712.14990234375,
|
||||
"x": 651.27,
|
||||
"y": -712.15,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 644.552734375,
|
||||
"y": -706.2041015625,
|
||||
"x": 644.55,
|
||||
"y": -706.2,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -73,8 +73,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": 651.5029296875,
|
||||
"y": -709.07568359375,
|
||||
"x": 651.5,
|
||||
"y": -709.08,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -82,8 +82,8 @@
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": 649.93359375,
|
||||
"y": -704.1845703125,
|
||||
"x": 649.93,
|
||||
"y": -704.18,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -91,8 +91,8 @@
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"x": 660.244140625,
|
||||
"y": -700.54052734375,
|
||||
"x": 660.24,
|
||||
"y": -700.54,
|
||||
"type": "path",
|
||||
"move_mode": "dash",
|
||||
"action": "",
|
||||
@@ -100,8 +100,8 @@
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"x": 670.037109375,
|
||||
"y": -688.427734375,
|
||||
"x": 670.04,
|
||||
"y": -688.43,
|
||||
"type": "path",
|
||||
"move_mode": "dash",
|
||||
"action": "",
|
||||
@@ -109,8 +109,8 @@
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"x": 698.6884765625,
|
||||
"y": -658.7841796875,
|
||||
"x": 698.69,
|
||||
"y": -658.78,
|
||||
"type": "path",
|
||||
"move_mode": "dash",
|
||||
"action": "",
|
||||
@@ -118,8 +118,8 @@
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"x": 697.947265625,
|
||||
"y": -665.6552734375,
|
||||
"x": 697.95,
|
||||
"y": -665.66,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 907.7841796875,
|
||||
"y": 599.25830078125,
|
||||
"x": 907.78,
|
||||
"y": 599.26,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -19,8 +19,8 @@
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 906.041015625,
|
||||
"y": 598.11962890625,
|
||||
"x": 906.04,
|
||||
"y": 598.12,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 912.15234375,
|
||||
"y": 599.16845703125,
|
||||
"x": 912.15,
|
||||
"y": 599.17,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 903.05078125,
|
||||
"y": 599.494140625,
|
||||
"x": 903.05,
|
||||
"y": 599.49,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "生活不能自理的qu",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
@@ -13,14 +13,14 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 6009.08544921875,
|
||||
"y": 762.5390625,
|
||||
"x": 6009.09,
|
||||
"y": 762.54,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 6015.32470703125,
|
||||
"y": 764.0810546875,
|
||||
"x": 6015.32,
|
||||
"y": 764.08,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 6006.68505859375,
|
||||
"y": 772.4697265625,
|
||||
"x": 6006.69,
|
||||
"y": 772.47,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 6011.43603515625,
|
||||
"y": 762.10986328125,
|
||||
"x": 6011.44,
|
||||
"y": 762.11,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 6084.4990234375,
|
||||
"y": 742.00048828125,
|
||||
"x": 6084.5,
|
||||
"y": 742.0,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 6086.0634765625,
|
||||
"y": 736.6357421875,
|
||||
"x": 6086.06,
|
||||
"y": 736.64,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 6131.6796875,
|
||||
"y": 741.62158203125,
|
||||
"x": 6131.68,
|
||||
"y": 741.62,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
|
||||
Reference in New Issue
Block a user