fix: json data validation (#514)

* json data validation

* 使用 jsonDataValidation 自动更正

* fix: 字段缺失时补全而不是报错
This commit is contained in:
秋云
2025-04-03 22:02:37 +08:00
committed by GitHub
parent b865b200bc
commit fbef10776b
2595 changed files with 125405 additions and 122363 deletions

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,61 +13,61 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 712.572265625,
"y": -770.5322265625
"x": 712.57,
"y": -770.53
},
{
"id": 2,
"x": 765.1962890625,
"y": -831.17822265625,
"x": 765.2,
"y": -831.18,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": 806.775390625,
"y": -826.7734375,
"x": 806.78,
"y": -826.77,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 4,
"x": 797.4072265625,
"y": -811.5146484375,
"x": 797.41,
"y": -811.51,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 824.2080078125,
"y": -798.0380859375,
"x": 824.21,
"y": -798.04,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 851.0244140625,
"y": -798.107421875,
"x": 851.02,
"y": -798.11,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 858.833984375,
"y": -802.83154296875,
"x": 858.83,
"y": -802.83,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 852.4267578125,
"y": -794.60009765625,
"x": 852.43,
"y": -794.6,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,61 +13,61 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 712.7099609375,
"y": -771.28759765625
"x": 712.71,
"y": -771.29
},
{
"id": 2,
"x": 709.52734375,
"y": -825.39208984375,
"x": 709.53,
"y": -825.39,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 717.6171875,
"y": -881.908203125,
"x": 717.62,
"y": -881.91,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 4,
"x": 688.291015625,
"y": -896.3125,
"x": 688.29,
"y": -896.31,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 5,
"x": 688.490234375,
"y": -901.25341796875,
"x": 688.49,
"y": -901.25,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 691.8896484375,
"y": -921.654296875,
"x": 691.89,
"y": -921.65,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 662.4267578125,
"y": -914.32373046875,
"x": 662.43,
"y": -914.32,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 661.9033203125,
"y": -917.7958984375,
"x": 661.9,
"y": -917.8,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,45 +13,45 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 524.1591796875,
"y": -624.55126953125
"x": 524.16,
"y": -624.55
},
{
"id": 2,
"x": 564.435546875,
"y": -626.34423828125,
"x": 564.44,
"y": -626.34,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 683.0712890625,
"y": -685.11181640625,
"x": 683.07,
"y": -685.11,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 671.5439453125,
"y": -667.90234375,
"x": 671.54,
"y": -667.9,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 680.6328125,
"y": -653.87158203125,
"x": 680.63,
"y": -653.87,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 682.01171875,
"y": -645.90673828125,
"x": 682.01,
"y": -645.91,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,101 +13,101 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 828.2412109375,
"y": -583.43359375
"x": 828.24,
"y": -583.43
},
{
"id": 2,
"x": 836.396484375,
"y": -573.6689453125,
"x": 836.4,
"y": -573.67,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 759.5703125,
"y": -488.41748046875,
"x": 759.57,
"y": -488.42,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 785.0380859375,
"y": -494.81591796875,
"x": 785.04,
"y": -494.82,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 5,
"x": 794.19921875,
"y": -495.9228515625,
"x": 794.2,
"y": -495.92,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 6,
"x": 807.3505859375,
"y": -488.7939453125,
"x": 807.35,
"y": -488.79,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 823.42578125,
"y": -413.3095703125,
"x": 823.43,
"y": -413.31,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 766.291015625,
"y": -416.34814453125,
"x": 766.29,
"y": -416.35,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 725.8173828125,
"y": -394.49560546875,
"x": 725.82,
"y": -394.5,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 741.6318359375,
"y": -405.4765625,
"x": 741.63,
"y": -405.48,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 11,
"x": 794.2744140625,
"y": -418.623046875,
"x": 794.27,
"y": -418.62,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 12,
"x": 867.9013671875,
"y": -365.71484375,
"x": 867.9,
"y": -365.71,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 13,
"x": 858.45703125,
"y": -357.70703125,
"x": 858.46,
"y": -357.71,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,45 +13,45 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 828.23046875,
"y": -583.36865234375
"x": 828.23,
"y": -583.37
},
{
"id": 2,
"x": 842.955078125,
"y": -586.14892578125,
"x": 842.96,
"y": -586.15,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 923.4326171875,
"y": -596.57421875,
"x": 923.43,
"y": -596.57,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 932.3291015625,
"y": -623.52978515625,
"x": 932.33,
"y": -623.53,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 5,
"x": 916.685546875,
"y": -622.47998046875,
"x": 916.69,
"y": -622.48,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 6,
"x": 914.552734375,
"y": -622.27490234375,
"x": 914.55,
"y": -622.27,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,53 +13,53 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 54.34375,
"y": 139.38818359375
"x": 54.34,
"y": 139.39
},
{
"id": 2,
"x": 36.955078125,
"y": 129.76611328125,
"x": 36.96,
"y": 129.77,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"id": 3,
"x": 40.724609375,
"y": 106.85205078125,
"x": 40.72,
"y": 106.85,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 40.3076171875,
"y": 108.892578125,
"x": 40.31,
"y": 108.89,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 5,
"x": 14.7919921875,
"y": 97.310546875,
"x": 14.79,
"y": 97.31,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 6,
"x": -32.0654296875,
"y": 67.64111328125,
"x": -32.07,
"y": 67.64,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 7,
"x": -62.3046875,
"y": 48.2998046875,
"x": -62.3,
"y": 48.3,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,61 +13,61 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 1115.86328125,
"y": 1188.52685546875
"x": 1115.86,
"y": 1188.53
},
{
"id": 2,
"x": 1124.7021484375,
"y": 1236.4140625,
"x": 1124.7,
"y": 1236.41,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": 1128.0185546875,
"y": 1279.91552734375,
"x": 1128.02,
"y": 1279.92,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 1128.5625,
"y": 1277.2431640625,
"x": 1128.56,
"y": 1277.24,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 5,
"x": 1129.919921875,
"y": 1283.23388671875,
"x": 1129.92,
"y": 1283.23,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 1120.9033203125,
"y": 1308.80908203125,
"x": 1120.9,
"y": 1308.81,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 1101.3369140625,
"y": 1322.37646484375,
"x": 1101.34,
"y": 1322.38,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 1109.408203125,
"y": 1317.51806640625,
"x": 1109.41,
"y": 1317.52,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,61 +13,61 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 800.302734375,
"y": 1791.2001953125
"x": 800.3,
"y": 1791.2
},
{
"id": 2,
"x": 814.068359375,
"y": 1793.07177734375,
"x": 814.07,
"y": 1793.07,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 853.955078125,
"y": 1846.015625,
"x": 853.96,
"y": 1846.02,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 863.28125,
"y": 1850.8583984375,
"x": 863.28,
"y": 1850.86,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 849.42578125,
"y": 1881.181640625,
"x": 849.43,
"y": 1881.18,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 6,
"x": 857.162109375,
"y": 1897.65087890625,
"x": 857.16,
"y": 1897.65,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 7,
"x": 865.5419921875,
"y": 1900.646484375,
"x": 865.54,
"y": 1900.65,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": 877.787109375,
"y": 1915.63232421875,
"x": 877.79,
"y": 1915.63,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,77 +13,77 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -1130.7646484375,
"y": 1597.95556640625
"x": -1130.76,
"y": 1597.96
},
{
"id": 2,
"x": -1108.58203125,
"y": 1606.927734375,
"x": -1108.58,
"y": 1606.93,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -1068.927734375,
"y": 1589.6494140625,
"x": -1068.93,
"y": 1589.65,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": -1035.734375,
"y": 1575.330078125,
"x": -1035.73,
"y": 1575.33,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 5,
"x": -957.5615234375,
"y": 1538.439453125,
"x": -957.56,
"y": 1538.44,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": -905.3212890625,
"y": 1558.58154296875,
"x": -905.32,
"y": 1558.58,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": -863.0576171875,
"y": 1533.3583984375,
"x": -863.06,
"y": 1533.36,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 8,
"x": -832.0341796875,
"y": 1526.671875,
"x": -832.03,
"y": 1526.67,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": -821.767578125,
"y": 1535.673828125,
"x": -821.77,
"y": 1535.67,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": -828.0361328125,
"y": 1528.8056640625,
"x": -828.04,
"y": 1528.81,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,37 +13,37 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -1130.791015625,
"y": 1597.92724609375
"x": -1130.79,
"y": 1597.93
},
{
"id": 2,
"x": -1143.4267578125,
"y": 1567.8837890625,
"x": -1143.43,
"y": 1567.88,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -1129.890625,
"y": 1529.72705078125,
"x": -1129.89,
"y": 1529.73,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": -1137.513671875,
"y": 1509.76904296875,
"x": -1137.51,
"y": 1509.77,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 5,
"x": -1144.63671875,
"y": 1495.0771484375,
"x": -1144.64,
"y": 1495.08,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4217.91015625,
"y": -2397.8017578125
"x": -4217.91,
"y": -2397.8
},
{
"id": 2,
"x": -4204.478515625,
"y": -2383.21484375,
"x": -4204.48,
"y": -2383.21,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": -4139.1640625,
"y": -2372.96875,
"x": -4139.16,
"y": -2372.97,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": -4170.873046875,
"y": -2399.9697265625,
"x": -4170.87,
"y": -2399.97,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,37 +13,37 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4184.841796875,
"y": -4244.6953125
"x": -4184.84,
"y": -4244.7
},
{
"id": 2,
"x": -4217.931640625,
"y": -4206.017578125,
"x": -4217.93,
"y": -4206.02,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -4271.89453125,
"y": -4187.8896484375,
"x": -4271.89,
"y": -4187.89,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": -4325.888671875,
"y": -4231.7998046875,
"x": -4325.89,
"y": -4231.8,
"type": "path",
"move_mode": "walk",
"action": "fight"
},
{
"id": 5,
"x": -4355.763671875,
"y": -4254.9560546875,
"x": -4355.76,
"y": -4254.96,
"type": "path",
"move_mode": "walk",
"action": "fight"

View File

@@ -5,7 +5,7 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4185.8828125,
"y": -4383.6796875
"x": -4185.88,
"y": -4383.68
},
{
"id": 2,
"x": -4209.962890625,
"y": -4399.4228515625,
"x": -4209.96,
"y": -4399.42,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -4244.974609375,
"y": -4427.2587890625,
"x": -4244.97,
"y": -4427.26,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": -4217.880859375,
"y": -4398.7890625,
"x": -4217.88,
"y": -4398.79,
"type": "path",
"move_mode": "walk",
"action": "fight"