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,37 +5,37 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 3811.611328125,
"y": 4952.607421875,
"x": 3811.61,
"y": 4952.61,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 3761.48291015625,
"y": 4903.95068359375,
"x": 3761.48,
"y": 4903.95,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 3,
"x": 3716.673828125,
"y": 4914.8896484375,
"x": 3716.67,
"y": 4914.89,
"action": "",
"move_mode": "run",
"type": "path"
},
{
"id": 4,
"x": 3561.1884765625,
"y": 4887.625,
"x": 3561.19,
"y": 4887.62,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"

View File

@@ -5,101 +5,101 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 5113.666015625,
"y": 2998.24853515625,
"x": 5113.67,
"y": 2998.25,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 5080.99609375,
"y": 3052.154541015625,
"x": 5081.0,
"y": 3052.15,
"action": "stop_flying",
"move_mode": "fly",
"type": "path"
},
{
"id": 3,
"x": 5070.10791015625,
"y": 3061.187255859375,
"x": 5070.11,
"y": 3061.19,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 4,
"x": 5050.282714843749,
"y": 3085.830078125,
"x": 5050.28,
"y": 3085.83,
"action": "stop_flying",
"move_mode": "fly",
"type": "path"
},
{
"id": 5,
"x": 5023.090332031251,
"y": 3117.9699707031255,
"x": 5023.09,
"y": 3117.97,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 6,
"x": 5003.77490234375,
"y": 3108.109619140625,
"x": 5003.77,
"y": 3108.11,
"action": "stop_flying",
"move_mode": "fly",
"type": "target"
},
{
"id": 7,
"x": 4997.2578125,
"y": 3095.5234375,
"x": 4997.26,
"y": 3095.52,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 8,
"x": 4990.61279296875,
"y": 3094.05908203125,
"x": 4990.61,
"y": 3094.06,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 9,
"x": 4979.62890625,
"y": 3094.2470703125,
"x": 4979.63,
"y": 3094.25,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 10,
"x": 4979.4111328125,
"y": 3089.87255859375,
"x": 4979.41,
"y": 3089.87,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 11,
"x": 4978.3564453125,
"y": 3085.6005859375,
"x": 4978.36,
"y": 3085.6,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 12,
"x": 4985.03466796875,
"y": 3081.80517578125,
"x": 4985.03,
"y": 3081.81,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"

View File

@@ -5,93 +5,93 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 4689.41162109375,
"y": 2429.50146484375,
"x": 4689.41,
"y": 2429.5,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 4688.94140625,
"y": 2387.95849609375,
"x": 4688.94,
"y": 2387.96,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 3,
"x": 4687.794433593749,
"y": 2353.553955078125,
"x": 4687.79,
"y": 2353.55,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 4,
"x": 4645.61962890625,
"y": 2327.52490234375,
"x": 4645.62,
"y": 2327.52,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 5,
"x": 4636.50927734375,
"y": 2285.450439453125,
"x": 4636.51,
"y": 2285.45,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 6,
"x": 4641,
"y": 2305,
"x": 4641.0,
"y": 2305.0,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 7,
"x": 4598.60009765625,
"y": 2335.7578125,
"x": 4598.6,
"y": 2335.76,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 8,
"x": 4567.58251953125,
"y": 2351.424072265625,
"x": 4567.58,
"y": 2351.42,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 9,
"x": 4555.62109375,
"y": 2350.292236328125,
"x": 4555.62,
"y": 2350.29,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 10,
"x": 4546.38037109375,
"y": 2359.484130859375,
"x": 4546.38,
"y": 2359.48,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 11,
"x": 4562.47119140625,
"y": 2362.876953125,
"x": 4562.47,
"y": 2362.88,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"

View File

@@ -5,93 +5,93 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 3367.06982421875,
"y": 3294.133056640625,
"x": 3367.07,
"y": 3294.13,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 3418.66064453125,
"y": 3299.1357421875,
"x": 3418.66,
"y": 3299.14,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 3,
"x": 3448.49853515625,
"y": 3267.92138671875,
"x": 3448.5,
"y": 3267.92,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 4,
"x": 3454.3505859375005,
"y": 3273.687255859375,
"x": 3454.35,
"y": 3273.69,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 5,
"x": 3450.27685546875,
"y": 3235.798583984375,
"x": 3450.28,
"y": 3235.8,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 6,
"x": 3437.5341796875,
"y": 3189.893798828125,
"x": 3437.53,
"y": 3189.89,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 7,
"x": 3442.6259765625,
"y": 3151.44921875,
"x": 3442.63,
"y": 3151.45,
"action": "stop_flying",
"move_mode": "fly",
"type": "target"
},
{
"id": 8,
"x": 3471.07177734375,
"y": 3138.39013671875,
"x": 3471.07,
"y": 3138.39,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 9,
"x": 3487.22021484375,
"y": 3145.89794921875,
"x": 3487.22,
"y": 3145.9,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 10,
"x": 3487.85009765625,
"y": 3141.4580078125,
"x": 3487.85,
"y": 3141.46,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 11,
"x": 3500.565917,
"y": 3149.912353,
"x": 3500.57,
"y": 3149.91,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"

View File

@@ -5,117 +5,117 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 3094.25244140625,
"y": 3354.820068359375,
"x": 3094.25,
"y": 3354.82,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 3083.58056640625,
"y": 3350.259765625,
"x": 3083.58,
"y": 3350.26,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 3,
"x": 3039.775390625,
"y": 3317.945556640625,
"x": 3039.78,
"y": 3317.95,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 4,
"x": 3009.8623046875,
"y": 3322.8203125,
"x": 3009.86,
"y": 3322.82,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 5,
"x": 2991.18994140625,
"y": 3340.97509765625,
"x": 2991.19,
"y": 3340.98,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 6,
"x": 3000.81640625,
"y": 3367.78564453125,
"x": 3000.82,
"y": 3367.79,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 7,
"x": 2953.4853515625,
"y": 3389.380615234375,
"x": 2953.49,
"y": 3389.38,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 8,
"x": 2940.97021484375,
"y": 3371.456787109375,
"x": 2940.97,
"y": 3371.46,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 9,
"x": 2945.9599609375,
"y": 3354.295654296875,
"x": 2945.96,
"y": 3354.3,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 10,
"x": 2914.47802734375,
"y": 3348.989990234375,
"x": 2914.48,
"y": 3348.99,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 11,
"x": 2866.140625,
"y": 3353.238525390625,
"x": 2866.14,
"y": 3353.24,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 12,
"x": 2854.107421875,
"y": 3370.589111328125,
"x": 2854.11,
"y": 3370.59,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 13,
"x": 2825.7099609375,
"y": 3406.033447265625,
"x": 2825.71,
"y": 3406.03,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 14,
"x": 2821.02734375,
"y": 3416.02392578125,
"x": 2821.03,
"y": 3416.02,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"

View File

@@ -5,77 +5,77 @@
"author": "曦",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 3635.56884765625,
"y": 3801.400390625,
"x": 3635.57,
"y": 3801.4,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 3655.2314453125,
"y": 3698.8701171875,
"x": 3655.23,
"y": 3698.87,
"action": "stop_flying",
"move_mode": "fly",
"type": "path"
},
{
"id": 3,
"x": 3662.900390625,
"y": 3670.67724609375,
"x": 3662.9,
"y": 3670.68,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 4,
"x": 3689.224609375,
"y": 3670.644287109375,
"x": 3689.22,
"y": 3670.64,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 5,
"x": 3689.4931640625,
"y": 3652.152099609375,
"x": 3689.49,
"y": 3652.15,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 6,
"x": 3686.947265625,
"y": 3662.046630859375,
"x": 3686.95,
"y": 3662.05,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 7,
"x": 3683.126953125,
"y": 3664.10791015625,
"x": 3683.13,
"y": 3664.11,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 8,
"x": 3684.8671875,
"y": 3666.0390625,
"x": 3684.87,
"y": 3666.04,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"
},
{
"id": 9,
"x": 3669.64697265625,
"y": 3651.517578125,
"x": 3669.65,
"y": 3651.52,
"action": "hydro_collect",
"move_mode": "walk",
"type": "target"