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,13 +5,13 @@
"author": "起个名字好难",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": -2365.9833984375,
"y": -3769.5166015625,
"x": -2365.98,
"y": -3769.52,
"action": "",
"move_mode": "walk",
"type": "teleport"
@@ -26,48 +26,48 @@
},
{
"id": 3,
"x": -2371.4375,
"y": -3733.76953125,
"x": -2371.44,
"y": -3733.77,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 4,
"x": -2376.3271484375,
"y": -3698.3076171875,
"x": -2376.33,
"y": -3698.31,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 5,
"x": -2364.140625,
"y": -3674.251953125,
"x": -2364.14,
"y": -3674.25,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 6,
"x": -2353.7666015625,
"y": -3659.5361328125,
"x": -2353.77,
"y": -3659.54,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 7,
"x": -2350.046875,
"y": -3646.78515625,
"x": -2350.05,
"y": -3646.79,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 8,
"x": -2348.4365234375,
"y": -3645.873046875,
"x": -2348.44,
"y": -3645.87,
"action": "",
"move_mode": "climb",
"type": "target"

View File

@@ -5,7 +5,7 @@
"author": "起个名字好难",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,93 +13,93 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -2215.951171875,
"y": -3709.4794921875
"x": -2215.95,
"y": -3709.48
},
{
"id": 2,
"x": -2210.828125,
"y": -3681.0234375,
"x": -2210.83,
"y": -3681.02,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -2204.2705078125,
"y": -3645.546875,
"x": -2204.27,
"y": -3645.55,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"id": 4,
"x": -2202.8291015625,
"y": -3642.8779296875,
"x": -2202.83,
"y": -3642.88,
"type": "path",
"move_mode": "climb",
"action": ""
},
{
"id": 5,
"x": -2202.8759765625,
"y": -3642.8759765625,
"x": -2202.88,
"y": -3642.88,
"type": "path",
"move_mode": "climb",
"action": ""
},
{
"id": 6,
"x": -2217.4482421875,
"y": -3632.0361328125,
"x": -2217.45,
"y": -3632.04,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": -2214.9892578125,
"y": -3625.6513671875,
"x": -2214.99,
"y": -3625.65,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": -2201.5068359375,
"y": -3623.2265625,
"x": -2201.51,
"y": -3623.23,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": -2198.2744140625,
"y": -3617.87890625,
"x": -2198.27,
"y": -3617.88,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": -2195.029296875,
"y": -3618.7705078125,
"x": -2195.03,
"y": -3618.77,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 11,
"x": -2179.71484375,
"y": -3612.8212890625,
"x": -2179.71,
"y": -3612.82,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 12,
"x": -2163.5244140625,
"y": -3598.5458984375,
"x": -2163.52,
"y": -3598.55,
"type": "target",
"move_mode": "climb",
"action": ""

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": -1964.103515625,
"y": -3576.49609375
"x": -1964.1,
"y": -3576.5
},
{
"id": 2,
"x": -1964.9208984375,
"y": -3588.21484375,
"x": -1964.92,
"y": -3588.21,
"type": "target",
"move_mode": "fly",
"action": ""
},
{
"id": 3,
"x": -1982.466796875,
"y": -3597.6611328125,
"x": -1982.47,
"y": -3597.66,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": -1970.208984375,
"y": -3603.9169921875,
"x": -1970.21,
"y": -3603.92,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": -2004.515625,
"y": -3628.4130859375,
"x": -2004.52,
"y": -3628.41,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": -2015.294921875,
"y": -3619.220703125,
"x": -2015.29,
"y": -3619.22,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "起个名字好难",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,93 +13,93 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -1964.083984375,
"y": -3576.501953125
"x": -1964.08,
"y": -3576.5
},
{
"id": 2,
"x": -1959.2392578125,
"y": -3561.908203125,
"x": -1959.24,
"y": -3561.91,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": -1962.154296875,
"y": -3566.2529296875,
"x": -1962.15,
"y": -3566.25,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": -1964.1982421875,
"y": -3576.4912109375,
"x": -1964.2,
"y": -3576.49,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": -1949.18359375,
"y": -3582.44921875,
"x": -1949.18,
"y": -3582.45,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 6,
"x": -1948.5107421875,
"y": -3569.4404296875,
"x": -1948.51,
"y": -3569.44,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": -1964.1220703125,
"y": -3576.4921875,
"x": -1964.12,
"y": -3576.49,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": -1953.80859375,
"y": -3527.44140625,
"x": -1953.81,
"y": -3527.44,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 9,
"x": -1947.0595703125,
"y": -3523.263671875,
"x": -1947.06,
"y": -3523.26,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": -1955.5615234375,
"y": -3517.732421875,
"x": -1955.56,
"y": -3517.73,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 11,
"x": -1951.103515625,
"y": -3512.8681640625,
"x": -1951.1,
"y": -3512.87,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 12,
"x": -1953.0400390625,
"y": -3508.150390625,
"x": -1953.04,
"y": -3508.15,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "起个名字好难",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,93 +13,93 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -3016.875,
"y": -3623.599609375
"x": -3016.88,
"y": -3623.6
},
{
"id": 2,
"x": -2960.32421875,
"y": -3651.41796875,
"x": -2960.32,
"y": -3651.42,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"id": 3,
"x": -2954.6708984375,
"y": -3693.103515625,
"x": -2954.67,
"y": -3693.1,
"type": "target",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": -2996.2744140625,
"y": -3696.62890625,
"x": -2996.27,
"y": -3696.63,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": -3005.6357421875,
"y": -3701.73828125,
"x": -3005.64,
"y": -3701.74,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": -3012.0361328125,
"y": -3703.166015625,
"x": -3012.04,
"y": -3703.17,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": -3018.0029296875,
"y": -3709.208984375,
"x": -3018.0,
"y": -3709.21,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": -3022.966796875,
"y": -3703.431640625,
"x": -3022.97,
"y": -3703.43,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": -3022.1064453125,
"y": -3679.6376953125,
"x": -3022.11,
"y": -3679.64,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": -3031.1708984375,
"y": -3674.951171875,
"x": -3031.17,
"y": -3674.95,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 11,
"x": -3041.6767578125,
"y": -3680.3369140625,
"x": -3041.68,
"y": -3680.34,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 13,
"x": -3037.8505859375,
"y": -3684.6552734375,
"x": -3037.85,
"y": -3684.66,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "起个名字好难",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,13 +13,13 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -2405.7724609375,
"y": -3912.9609375
"x": -2405.77,
"y": -3912.96
},
{
"id": 2,
"x": -2425.1669921875,
"y": -3897.998046875,
"x": -2425.17,
"y": -3898.0,
"type": "path",
"move_mode": "walk",
"action": ""
@@ -27,134 +27,134 @@
{
"id": 3,
"x": -2462.75,
"y": -3847.625,
"y": -3847.62,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": -2462.71875,
"y": -3847.640625,
"x": -2462.72,
"y": -3847.64,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": -2450.62890625,
"y": -3829.431640625,
"x": -2450.63,
"y": -3829.43,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": -2452.2099609375,
"y": -3827.6142578125,
"x": -2452.21,
"y": -3827.61,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": -2464.685546875,
"y": -3832.466796875,
"x": -2464.69,
"y": -3832.47,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 8,
"x": -2479.1591796875,
"y": -3843.244140625,
"x": -2479.16,
"y": -3843.24,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": -2479.7763671875,
"y": -3840.2255859375,
"x": -2479.78,
"y": -3840.23,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": -2492.0439453125,
"y": -3828.97265625,
"x": -2492.04,
"y": -3828.97,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 11,
"x": -2488.3984375,
"y": -3827.876953125,
"x": -2488.4,
"y": -3827.88,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 12,
"x": -2504.5791015625,
"y": -3832.37890625,
"x": -2504.58,
"y": -3832.38,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 13,
"x": -2504.69921875,
"y": -3854.12109375,
"x": -2504.7,
"y": -3854.12,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 14,
"x": -2513.03515625,
"y": -3846.623046875,
"x": -2513.04,
"y": -3846.62,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 15,
"x": -2527.71875,
"y": -3853.3427734375,
"x": -2527.72,
"y": -3853.34,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 16,
"x": -2555.83984375,
"y": -3864.6943359375,
"x": -2555.84,
"y": -3864.69,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 17,
"x": -2564.9375,
"y": -3874.251953125,
"x": -2564.94,
"y": -3874.25,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 18,
"x": -2558.552734375,
"y": -3868.51171875,
"x": -2558.55,
"y": -3868.51,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 19,
"x": -2555.3525390625,
"x": -2555.35,
"y": -3865.5,
"type": "path",
"move_mode": "walk",
@@ -162,24 +162,24 @@
},
{
"id": 20,
"x": -2545.79296875,
"y": -3867.447265625,
"x": -2545.79,
"y": -3867.45,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 21,
"x": -2551.5732421875,
"y": -3867.537109375,
"x": -2551.57,
"y": -3867.54,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 22,
"x": -2552.4365234375,
"y": -3858.18359375,
"x": -2552.44,
"y": -3858.18,
"type": "target",
"move_mode": "climb",
"action": ""