fix: json data validation (#514)
* json data validation * 使用 jsonDataValidation 自动更正 * fix: 字段缺失时补全而不是报错
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
"action": "force_tp",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 10263.001953125,
|
||||
"y": -2541.9765625,
|
||||
"x": 10263.0,
|
||||
"y": -2541.98,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 10230.6904296875,
|
||||
"y": -2517.8701171875,
|
||||
"x": 10230.69,
|
||||
"y": -2517.87,
|
||||
"type": "target",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 10226.4794921875,
|
||||
"y": -2519.978515625,
|
||||
"x": 10226.48,
|
||||
"y": -2519.98,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 10195.212890625,
|
||||
"y": -2506.083984375,
|
||||
"x": 10195.21,
|
||||
"y": -2506.08,
|
||||
"type": "target",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 10195.359375,
|
||||
"y": -2508.9599609375,
|
||||
"x": 10195.36,
|
||||
"y": -2508.96,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 10184.7841796875,
|
||||
"y": -2511.158203125,
|
||||
"x": 10184.78,
|
||||
"y": -2511.16,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 10178.5390625,
|
||||
"y": -2519.0302734375,
|
||||
"x": 10178.54,
|
||||
"y": -2519.03,
|
||||
"type": "target",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -73,8 +73,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": 10171.990234375,
|
||||
"y": -2518.4638671875,
|
||||
"x": 10171.99,
|
||||
"y": -2518.46,
|
||||
"type": "path",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
@@ -82,8 +82,8 @@
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": 10165.48828125,
|
||||
"y": -2521.6171875,
|
||||
"x": 10165.49,
|
||||
"y": -2521.62,
|
||||
"type": "target",
|
||||
"move_mode": "run",
|
||||
"action": "",
|
||||
|
||||
Reference in New Issue
Block a user