fix: json data validation (#514)
* json data validation * 使用 jsonDataValidation 自动更正 * fix: 字段缺失时补全而不是报错
This commit is contained in:
@@ -10,32 +10,32 @@
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"x": 7974.3154296875,
|
||||
"y": -2226.2763671875,
|
||||
"x": 7974.32,
|
||||
"y": -2226.28,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 7977.0263671875,
|
||||
"y": -2211.90625,
|
||||
"x": 7977.03,
|
||||
"y": -2211.91,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 7980.828125,
|
||||
"y": -2182.38671875,
|
||||
"x": 7980.83,
|
||||
"y": -2182.39,
|
||||
"action": "",
|
||||
"move_mode": "fly",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 7967.27734375,
|
||||
"y": -2167.984375,
|
||||
"x": 7967.28,
|
||||
"y": -2167.98,
|
||||
"action": "stop_flying",
|
||||
"move_mode": "fly",
|
||||
"type": "target"
|
||||
|
||||
Reference in New Issue
Block a user