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

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": 9923.6376953125,
"y": -3277.6318359375,
"x": 9923.64,
"y": -3277.63,
"type": "teleport",
"move_mode": "walk",
"action": "force_tp",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": 9959.0849609375,
"y": -3281.4375,
"x": 9959.08,
"y": -3281.44,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 10001.859375,
"y": -3214.8193359375,
"x": 10001.86,
"y": -3214.82,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 10008.9794921875,
"y": -3183.689453125,
"x": 10008.98,
"y": -3183.69,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 10010.09765625,
"y": -3166.6884765625,
"x": 10010.1,
"y": -3166.69,
"type": "path",
"move_mode": "walk",
"action": "fight",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 10020.529296875,
"y": -3165.951171875,
"x": 10020.53,
"y": -3165.95,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": 10023.640625,
"y": -3168.091796875,
"x": 10023.64,
"y": -3168.09,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": 10021.654296875,
"y": -3165.2958984375,
"x": 10021.65,
"y": -3165.3,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": 10009.435546875,
"y": -3164.0771484375,
"x": 10009.44,
"y": -3164.08,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": 10011.2470703125,
"y": -3158.0693359375,
"x": 10011.25,
"y": -3158.07,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": 9997.6865234375,
"y": -3177.095703125,
"x": 9997.69,
"y": -3177.1,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -109,8 +109,8 @@
},
{
"id": 12,
"x": 9997.5380859375,
"y": -3174.001953125,
"x": 9997.54,
"y": -3174.0,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": 9994.349609375,
"y": -3171.2236328125,
"x": 9994.35,
"y": -3171.22,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -127,8 +127,8 @@
},
{
"id": 14,
"x": 9991.3896484375,
"y": -3169.880859375,
"x": 9991.39,
"y": -3169.88,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -136,8 +136,8 @@
},
{
"id": 15,
"x": 9993.6572265625,
"y": -3171.8955078125,
"x": 9993.66,
"y": -3171.9,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -145,8 +145,8 @@
},
{
"id": 16,
"x": 9992.755859375,
"y": -3161.673828125,
"x": 9992.76,
"y": -3161.67,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -154,8 +154,8 @@
},
{
"id": 17,
"x": 9978.826171875,
"y": -3151.01171875,
"x": 9978.83,
"y": -3151.01,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -163,8 +163,8 @@
},
{
"id": 18,
"x": 9980.1357421875,
"y": -3148.0556640625,
"x": 9980.14,
"y": -3148.06,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -172,8 +172,8 @@
},
{
"id": 19,
"x": 9971.0400390625,
"y": -3162.2861328125,
"x": 9971.04,
"y": -3162.29,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -181,8 +181,8 @@
},
{
"id": 20,
"x": 9968.3369140625,
"y": -3163.5751953125,
"x": 9968.34,
"y": -3163.58,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": 9838.0693359375,
"y": -2365.14453125,
"x": 9838.07,
"y": -2365.14,
"action": "force_tp",
"move_mode": "walk",
"action_params": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": 9832.189453125,
"y": -2393.81640625,
"x": 9832.19,
"y": -2393.82,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 9827.126138969808,
"y": -2422.125,
"x": 9827.13,
"y": -2422.12,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 9816.12611524127,
"y": -2427.0625,
"x": 9816.13,
"y": -2427.06,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 9812.126162698345,
"y": -2430.125,
"x": 9812.13,
"y": -2430.12,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 9814.2021484375,
"y": -2433.8330078125,
"x": 9814.2,
"y": -2433.83,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": 9815.65625,
"y": -2430.908203125,
"x": 9815.66,
"y": -2430.91,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": 9818.306640625,
"y": -2428.2607421875,
"x": 9818.31,
"y": -2428.26,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": 9795.73046875,
"y": -2665.640625,
"x": 9795.73,
"y": -2665.64,
"action": "force_tp",
"move_mode": "walk",
"action_params": "",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": 9795.90625,
"y": -2612.0048828125,
"x": 9795.91,
"y": -2612.0,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": 9823.249525429246,
"y": -2583.125,
"x": 9823.25,
"y": -2583.12,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -109,8 +109,8 @@
},
{
"id": 12,
"x": 9826.249549157785,
"y": -2580.4375,
"x": 9826.25,
"y": -2580.44,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": 9836.408203125,
"y": -2574.7197265625,
"x": 9836.41,
"y": -2574.72,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -127,8 +127,8 @@
},
{
"id": 14,
"x": 9866.7216796875,
"y": -2576.6123046875,
"x": 9866.72,
"y": -2576.61,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -136,8 +136,8 @@
},
{
"id": 15,
"x": 9878.7890625,
"y": -2563.98046875,
"x": 9878.79,
"y": -2563.98,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -145,8 +145,8 @@
},
{
"id": 16,
"x": 9880.218204243634,
"y": -2561.96875,
"x": 9880.22,
"y": -2561.97,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -154,8 +154,8 @@
},
{
"id": 17,
"x": 9881.41015625,
"y": -2558.8212890625,
"x": 9881.41,
"y": -2558.82,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -163,8 +163,8 @@
},
{
"id": 18,
"x": 9713.5009765625,
"y": -2420.6025390625,
"x": 9713.5,
"y": -2420.6,
"action": "force_tp",
"move_mode": "walk",
"action_params": "",
@@ -172,8 +172,8 @@
},
{
"id": 19,
"x": 9723.2509765625,
"y": -2469.3271484375,
"x": 9723.25,
"y": -2469.33,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -181,8 +181,8 @@
},
{
"id": 20,
"x": 9724.138671875,
"y": -2473.326171875,
"x": 9724.14,
"y": -2473.33,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -190,8 +190,8 @@
},
{
"id": 21,
"x": 9730.7802734375,
"y": -2480.1357421875,
"x": 9730.78,
"y": -2480.14,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -199,8 +199,8 @@
},
{
"id": 22,
"x": 9750.14453125,
"y": -2493.818359375,
"x": 9750.14,
"y": -2493.82,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -208,8 +208,8 @@
},
{
"id": 23,
"x": 9753.31640625,
"y": -2496.6572265625,
"x": 9753.32,
"y": -2496.66,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -217,8 +217,8 @@
},
{
"id": 24,
"x": 9755.1103515625,
"y": -2494.8916015625,
"x": 9755.11,
"y": -2494.89,
"type": "path",
"move_mode": "walk",
"action": "electro_collect",
@@ -226,8 +226,8 @@
},
{
"id": 25,
"x": 9751.1416015625,
"y": -2495.865234375,
"x": 9751.14,
"y": -2495.87,
"type": "path",
"move_mode": "walk",
"action": "",

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": 10363.728515625,
"y": -3315.8544921875,
"x": 10363.73,
"y": -3315.85,
"type": "teleport",
"move_mode": "walk",
"action": "force_tp",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": 10350.3720703125,
"y": -3313.5390625,
"x": 10350.37,
"y": -3313.54,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 10347.826171875,
"y": -3311.787109375,
"x": 10347.83,
"y": -3311.79,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 10344.9765625,
"y": -3325.126953125,
"x": 10344.98,
"y": -3325.13,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 10345.625,
"y": -3319.0693359375,
"x": 10345.62,
"y": -3319.07,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 10295.015625,
"y": -3321.6787109375,
"x": 10295.02,
"y": -3321.68,
"type": "path",
"move_mode": "walk",
"action": "log_output",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": 10289.052734375,
"y": -3332.623046875,
"x": 10289.05,
"y": -3332.62,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": 10286.603515625,
"y": -3323.240234375,
"x": 10286.6,
"y": -3323.24,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": 10284.71484375,
"y": -3330.646484375,
"x": 10284.71,
"y": -3330.65,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": 10280.509765625,
"y": -3321.7216796875,
"x": 10280.51,
"y": -3321.72,
"type": "path",
"move_mode": "dash",
"action": "",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": 10271.3115234375,
"y": -3323.9443359375,
"x": 10271.31,
"y": -3323.94,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -109,8 +109,8 @@
},
{
"id": 12,
"x": 10250.4755859375,
"y": -3326.708984375,
"x": 10250.48,
"y": -3326.71,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": 10247.3251953125,
"y": -3322.9853515625,
"x": 10247.33,
"y": -3322.99,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -127,8 +127,8 @@
},
{
"id": 14,
"x": 10246.302734375,
"y": -3325.0693359375,
"x": 10246.3,
"y": -3325.07,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -136,8 +136,8 @@
},
{
"id": 15,
"x": 10249.447265625,
"y": -3327.080078125,
"x": 10249.45,
"y": -3327.08,
"type": "path",
"move_mode": "walk",
"action": "",

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": 10925.6796875,
"y": -2363.5859375,
"x": 10925.68,
"y": -2363.59,
"action": "force_tp",
"move_mode": "walk",
"action_params": "",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": 10926.4248046875,
"y": -2417.44921875,
"x": 10926.42,
"y": -2417.45,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 10918.4365234375,
"y": -2424.3974609375,
"x": 10918.44,
"y": -2424.4,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 10906.4775390625,
"y": -2433.4404296875,
"x": 10906.48,
"y": -2433.44,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 10876.939453125,
"y": -2450.2802734375,
"x": 10876.94,
"y": -2450.28,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 10839.7021484375,
"y": -2465.1455078125,
"x": 10839.7,
"y": -2465.15,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -64,8 +64,8 @@
},
{
"id": 7,
"x": 10837.7138671875,
"y": -2473.0966796875,
"x": 10837.71,
"y": -2473.1,
"action": "fight",
"move_mode": "walk",
"action_params": "",
@@ -73,8 +73,8 @@
},
{
"id": 8,
"x": 10836.990234375,
"y": -2474.935546875,
"x": 10836.99,
"y": -2474.94,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -82,8 +82,8 @@
},
{
"id": 9,
"x": 10837.953125,
"y": -2473.142578125,
"x": 10837.95,
"y": -2473.14,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -91,8 +91,8 @@
},
{
"id": 10,
"x": 10845.265625,
"y": -2462.091796875,
"x": 10845.27,
"y": -2462.09,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -100,8 +100,8 @@
},
{
"id": 11,
"x": 10829.6533203125,
"y": -2462.97265625,
"x": 10829.65,
"y": -2462.97,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -109,8 +109,8 @@
},
{
"id": 12,
"x": 10819.9013671875,
"y": -2475.716796875,
"x": 10819.9,
"y": -2475.72,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -118,8 +118,8 @@
},
{
"id": 13,
"x": 10818.5986328125,
"y": -2494.748046875,
"x": 10818.6,
"y": -2494.75,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -127,8 +127,8 @@
},
{
"id": 14,
"x": 10833.9267578125,
"y": -2517.798828125,
"x": 10833.93,
"y": -2517.8,
"action": "",
"move_mode": "walk",
"action_params": "",
@@ -136,8 +136,8 @@
},
{
"id": 15,
"x": 10828.2626953125,
"y": -2530.7060546875,
"x": 10828.26,
"y": -2530.71,
"action": "electro_collect",
"move_mode": "walk",
"action_params": "",
@@ -145,8 +145,8 @@
},
{
"id": 16,
"x": 10828.54296875,
"y": -2532.3515625,
"x": 10828.54,
"y": -2532.35,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -154,8 +154,8 @@
},
{
"id": 17,
"x": 10825.78515625,
"y": -2529.4619140625,
"x": 10825.79,
"y": -2529.46,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -163,8 +163,8 @@
},
{
"id": 18,
"x": 10835.392578125,
"y": -2520.4453125,
"x": 10835.39,
"y": -2520.45,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -172,8 +172,8 @@
},
{
"id": 19,
"x": 10856.4208984375,
"y": -2518.5029296875,
"x": 10856.42,
"y": -2518.5,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -181,8 +181,8 @@
},
{
"id": 20,
"x": 10858.953125,
"y": -2521.4453125,
"x": 10858.95,
"y": -2521.45,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -190,8 +190,8 @@
},
{
"id": 21,
"x": 10860.1015625,
"y": -2523.646484375,
"x": 10860.1,
"y": -2523.65,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -199,8 +199,8 @@
},
{
"id": 22,
"x": 10861.3759765625,
"y": -2524.1025390625,
"x": 10861.38,
"y": -2524.1,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",

View File

@@ -10,8 +10,8 @@
"positions": [
{
"id": 1,
"x": 10595.3193359375,
"y": -2654.4775390625,
"x": 10595.32,
"y": -2654.48,
"type": "teleport",
"move_mode": "walk",
"action": "force_tp",
@@ -19,8 +19,8 @@
},
{
"id": 2,
"x": 10581.5341796875,
"y": -2657.2216796875,
"x": 10581.53,
"y": -2657.22,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -28,8 +28,8 @@
},
{
"id": 3,
"x": 10556.33984375,
"y": -2677.220703125,
"x": 10556.34,
"y": -2677.22,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -37,8 +37,8 @@
},
{
"id": 4,
"x": 10546.154296875,
"y": -2678.1298828125,
"x": 10546.15,
"y": -2678.13,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -46,8 +46,8 @@
},
{
"id": 5,
"x": 10535.205078125,
"y": -2682.9375,
"x": 10535.21,
"y": -2682.94,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -55,8 +55,8 @@
},
{
"id": 6,
"x": 10530.9140625,
"y": -2696.9853515625,
"x": 10530.91,
"y": -2696.99,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -65,8 +65,8 @@
},
{
"id": 7,
"x": 10531.9951171875,
"y": -2697.287109375,
"x": 10532.0,
"y": -2697.29,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -74,8 +74,8 @@
},
{
"id": 8,
"x": 10525.062543038373,
"y": -2695.625505617978,
"x": 10525.06,
"y": -2695.63,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -84,8 +84,8 @@
},
{
"id": 9,
"x": 10518.458984375,
"y": -2697.4765625,
"x": 10518.46,
"y": -2697.48,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -93,8 +93,8 @@
},
{
"id": 10,
"x": 10505.267578125,
"y": -2710.931640625,
"x": 10505.27,
"y": -2710.93,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -102,8 +102,8 @@
},
{
"id": 11,
"x": 10504.048828125,
"y": -2725.2529296875,
"x": 10504.05,
"y": -2725.25,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -111,8 +111,8 @@
},
{
"id": 12,
"x": 10515.642578125,
"y": -2741.71875,
"x": 10515.64,
"y": -2741.72,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -120,8 +120,8 @@
},
{
"id": 13,
"x": 10517.09375,
"y": -2741.1396484375,
"x": 10517.09,
"y": -2741.14,
"type": "path",
"move_mode": "walk",
"action": "",
@@ -129,8 +129,8 @@
},
{
"id": 14,
"x": 10519.9228515625,
"y": -2744.01171875,
"x": 10519.92,
"y": -2744.01,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -138,8 +138,8 @@
},
{
"id": 15,
"x": 10521.61328125,
"y": -2748.5966796875,
"x": 10521.61,
"y": -2748.6,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",
@@ -147,8 +147,8 @@
},
{
"id": 16,
"x": 10524.671875,
"y": -2746.8291015625,
"x": 10524.67,
"y": -2746.83,
"type": "target",
"move_mode": "walk",
"action": "electro_collect",