fix: json data validation (#514)
* json data validation * 使用 jsonDataValidation 自动更正 * fix: 字段缺失时补全而不是报错
This commit is contained in:
@@ -1,65 +1,65 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "嘟嘟莲",
|
||||
"name": "嘟嘟莲1-清泉镇-11个",
|
||||
"type": "collect",
|
||||
"author": "yulalaa&不瘦五十斤不改名",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -914.8623046875,
|
||||
"y": 1795.45166015625,
|
||||
"x": -914.86,
|
||||
"y": 1795.45,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -914.9033203125,
|
||||
"y": 1795.4267578125,
|
||||
"x": -914.9,
|
||||
"y": 1795.43,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -917.44921875,
|
||||
"y": 1788.79833984375,
|
||||
"x": -917.45,
|
||||
"y": 1788.8,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -910.451171875,
|
||||
"y": 1787.9013671875,
|
||||
"x": -910.45,
|
||||
"y": 1787.9,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -909.689453125,
|
||||
"y": 1801.83935546875,
|
||||
"x": -909.69,
|
||||
"y": 1801.84,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": -907.6728515625,
|
||||
"y": 1805.802734375,
|
||||
"x": -907.67,
|
||||
"y": 1805.8,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": -894.6328125,
|
||||
"y": 1819.19384765625,
|
||||
"x": -894.63,
|
||||
"y": 1819.19,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "swim",
|
||||
"type": "target"
|
||||
|
||||
@@ -3,87 +3,87 @@
|
||||
"name": "嘟嘟莲2-达达乌帕谷-7个",
|
||||
"type": "collect",
|
||||
"author": "yulalaa&不瘦五十斤不改名",
|
||||
"version": "1.1",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -1432.6494140625,
|
||||
"y": 1464.57421875,
|
||||
"x": -1432.65,
|
||||
"y": 1464.57,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -1456.3017578125,
|
||||
"y": 1448.5087890625,
|
||||
"x": -1456.3,
|
||||
"y": 1448.51,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -1517.8779296875,
|
||||
"y": 1406.765625,
|
||||
"x": -1517.88,
|
||||
"y": 1406.77,
|
||||
"action": "",
|
||||
"move_mode": "fly",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -1556.6767578125,
|
||||
"y": 1393.68017578125,
|
||||
"x": -1556.68,
|
||||
"y": 1393.68,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -1539.2109375,
|
||||
"y": 1353.99365234375,
|
||||
"x": -1539.21,
|
||||
"y": 1353.99,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": -1539.591796875,
|
||||
"y": 1309.1494140625,
|
||||
"x": -1539.59,
|
||||
"y": 1309.15,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": -1520.8955078125,
|
||||
"y": 1274.85693359375,
|
||||
"x": -1520.9,
|
||||
"y": 1274.86,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": -1527.0341796875,
|
||||
"y": 1255.419921875,
|
||||
"x": -1527.03,
|
||||
"y": 1255.42,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": -1516.724609375,
|
||||
"y": 1244.09814453125,
|
||||
"x": -1516.72,
|
||||
"y": 1244.1,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"x": -1502.6650390625,
|
||||
"y": 1248.7041015625,
|
||||
"x": -1502.67,
|
||||
"y": 1248.7,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
|
||||
@@ -3,38 +3,38 @@
|
||||
"name": "嘟嘟莲3-晨曦酒庄-3个",
|
||||
"type": "collect",
|
||||
"author": "yulalaa&不瘦五十斤不改名",
|
||||
"version": "1.1",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -321.59375,
|
||||
"y": 1473.33935546875,
|
||||
"x": -321.59,
|
||||
"y": 1473.34,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -262.9287109375,
|
||||
"y": 1590.72265625,
|
||||
"x": -262.93,
|
||||
"y": 1590.72,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -256.4677734375,
|
||||
"y": 1599.08349609375,
|
||||
"x": -256.47,
|
||||
"y": 1599.08,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -256.2540860800873,
|
||||
"x": -256.25,
|
||||
"y": 1602.25,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "run",
|
||||
@@ -42,16 +42,16 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -347.0859375,
|
||||
"y": 1646.92333984375,
|
||||
"x": -347.09,
|
||||
"y": 1646.92,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": -395.7275390625,
|
||||
"y": 1624.00390625,
|
||||
"x": -395.73,
|
||||
"y": 1624.0,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "target"
|
||||
|
||||
@@ -5,29 +5,29 @@
|
||||
"author": "yulalaa&不瘦五十斤不改名",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -521.2548828125,
|
||||
"y": 2179.80029296875,
|
||||
"x": -521.25,
|
||||
"y": 2179.8,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -493.8017578125,
|
||||
"y": 2170.023681640625,
|
||||
"x": -493.8,
|
||||
"y": 2170.02,
|
||||
"action": "",
|
||||
"move_mode": "run",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -477.9921875,
|
||||
"y": 2154.699951171875,
|
||||
"x": -477.99,
|
||||
"y": 2154.7,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "run",
|
||||
"type": "target"
|
||||
|
||||
@@ -5,29 +5,29 @@
|
||||
"author": "yulalaa&不瘦五十斤不改名",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -1505.9140625,
|
||||
"y": 2296.210693359375,
|
||||
"x": -1505.91,
|
||||
"y": 2296.21,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -1468.28515625,
|
||||
"y": 2290.935791015625,
|
||||
"x": -1468.29,
|
||||
"y": 2290.94,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -1468.8828125,
|
||||
"y": 2291.862548828125,
|
||||
"x": -1468.88,
|
||||
"y": 2291.86,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
|
||||
@@ -5,29 +5,29 @@
|
||||
"author": "yulalaa&不瘦五十斤不改名",
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"bgiVersion": "0.35.1"
|
||||
"bgiVersion": "v0.42.0"
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -1330.091796875,
|
||||
"y": 2563.93310546875,
|
||||
"x": -1330.09,
|
||||
"y": 2563.93,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -1327.541015625,
|
||||
"y": 2559.2763671875,
|
||||
"x": -1327.54,
|
||||
"y": 2559.28,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -1319.3388671875,
|
||||
"y": 2568.6005859375,
|
||||
"x": -1319.34,
|
||||
"y": 2568.6,
|
||||
"action": "nahida_collect",
|
||||
"move_mode": "walk",
|
||||
"type": "target"
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": -914.833984375,
|
||||
"y": 1795.47705078125,
|
||||
"x": -914.83,
|
||||
"y": 1795.48,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -880.4404296875,
|
||||
"y": 1790.77294921875,
|
||||
"x": -880.44,
|
||||
"y": 1790.77,
|
||||
"type": "path",
|
||||
"move_mode": "swim",
|
||||
"action": "nahida_collect",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -882.0771484375,
|
||||
"y": 1814.4140625,
|
||||
"x": -882.08,
|
||||
"y": 1814.41,
|
||||
"type": "path",
|
||||
"move_mode": "dash",
|
||||
"action": "nahida_collect",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -908.3505859375,
|
||||
"y": 1836.58642578125,
|
||||
"x": -908.35,
|
||||
"y": 1836.59,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "nahida_collect",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -914.833984375,
|
||||
"y": 1795.494140625,
|
||||
"x": -914.83,
|
||||
"y": 1795.49,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": -914.103515625,
|
||||
"y": 1786.111328125,
|
||||
"x": -914.1,
|
||||
"y": 1786.11,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "nahida_collect",
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": -521.556640625,
|
||||
"y": 2181.317626953125,
|
||||
"x": -521.56,
|
||||
"y": 2181.32,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -19,8 +19,8 @@
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": -503.7470703125,
|
||||
"y": 2171.126708984375,
|
||||
"x": -503.75,
|
||||
"y": 2171.13,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": -490.0654296875,
|
||||
"y": 2169.805419921875,
|
||||
"x": -490.07,
|
||||
"y": 2169.81,
|
||||
"type": "path",
|
||||
"move_mode": "swim",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": -480.6689453125,
|
||||
"y": 2163.869140625,
|
||||
"x": -480.67,
|
||||
"y": 2163.87,
|
||||
"type": "path",
|
||||
"move_mode": "swim",
|
||||
"action": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": -477.314453125,
|
||||
"y": 2152.47607421875,
|
||||
"x": -477.31,
|
||||
"y": 2152.48,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "nahida_collect",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": -1505.9052734375,
|
||||
"y": 2296.221923828125,
|
||||
"x": -1505.91,
|
||||
"y": 2296.22,
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": -1469.64453125,
|
||||
"y": 2290.897705078125,
|
||||
"x": -1469.64,
|
||||
"y": 2290.9,
|
||||
"type": "path",
|
||||
"move_mode": "fly",
|
||||
"action": "stop_flying",
|
||||
@@ -73,8 +73,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": -1463.7890625,
|
||||
"y": 2289.42041015625,
|
||||
"x": -1463.79,
|
||||
"y": 2289.42,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "nahida_collect",
|
||||
|
||||
Reference in New Issue
Block a user