fix: json data validation (#514)
* json data validation * 使用 jsonDataValidation 自动更正 * fix: 字段缺失时补全而不是报错
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 10793.80078125,
|
||||
"y": -3070.029296875,
|
||||
"x": 10793.8,
|
||||
"y": -3070.03,
|
||||
"action": "force_tp",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -19,8 +19,8 @@
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 10819.8642578125,
|
||||
"y": -3111.140625,
|
||||
"x": 10819.86,
|
||||
"y": -3111.14,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"action_params": "",
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 10819.8466796875,
|
||||
"y": -3111.1220703125,
|
||||
"x": 10819.85,
|
||||
"y": -3111.12,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -37,8 +37,8 @@
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 10793.80078125,
|
||||
"y": -3070.029296875,
|
||||
"x": 10793.8,
|
||||
"y": -3070.03,
|
||||
"action": "force_tp",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"x": 10819.2685546875,
|
||||
"y": -3033.158203125,
|
||||
"x": 10819.27,
|
||||
"y": -3033.16,
|
||||
"action": "",
|
||||
"move_mode": "fly",
|
||||
"action_params": "",
|
||||
@@ -55,8 +55,8 @@
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"x": 10812.896484375,
|
||||
"y": -3023.3974609375,
|
||||
"x": 10812.9,
|
||||
"y": -3023.4,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -64,8 +64,8 @@
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"x": 10791.41015625,
|
||||
"y": -3017.462890625,
|
||||
"x": 10791.41,
|
||||
"y": -3017.46,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -73,8 +73,8 @@
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"x": 10775.208984375,
|
||||
"y": -3009.3740234375,
|
||||
"x": 10775.21,
|
||||
"y": -3009.37,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -82,8 +82,8 @@
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"x": 10756.8291015625,
|
||||
"y": -2994.1943359375,
|
||||
"x": 10756.83,
|
||||
"y": -2994.19,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -91,8 +91,8 @@
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"x": 10760.5595703125,
|
||||
"y": -2981.0458984375,
|
||||
"x": 10760.56,
|
||||
"y": -2981.05,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
@@ -100,8 +100,8 @@
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"x": 10756.609375,
|
||||
"y": -2969.47265625,
|
||||
"x": 10756.61,
|
||||
"y": -2969.47,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"action_params": "",
|
||||
|
||||
Reference in New Issue
Block a user