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

@@ -1,81 +1,81 @@
{
"info": {
"name": "墩墩桃",
"name": "墩墩桃1",
"type": "collect",
"author": "风埠",
"version": "1.0",
"description": "卡萨扎莱宫左边墩墩桃20个",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 2803.81787109375,
"y": 9.4013671875,
"x": 2803.82,
"y": 9.4,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 2815.603515625,
"y": 35.43896484375,
"x": 2815.6,
"y": 35.44,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 3,
"x": 2822.7783203125,
"y": 54.78515625,
"x": 2822.78,
"y": 54.79,
"action": "stop_flying",
"move_mode": "fly",
"type": "path"
},
{
"id": 4,
"x": 2834.86279296875,
"y": 90.5712890625,
"x": 2834.86,
"y": 90.57,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 5,
"x": 2801.8916015625,
"y": 82.99853515625,
"x": 2801.89,
"y": 83.0,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 6,
"x": 2797.54833984375,
"y": 100.45654296875,
"x": 2797.55,
"y": 100.46,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 7,
"x": 2789.02587890625,
"y": 134.32763671875,
"x": 2789.03,
"y": 134.33,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 8,
"x": 2782.26806640625,
"y": 140.70263671875,
"x": 2782.27,
"y": 140.7,
"action": "",
"move_mode": "walk",
"type": "target"
},
{
"id": 9,
"x": 2841.30810546875,
"y": 116.57177734375,
"x": 2841.31,
"y": 116.57,
"action": "",
"move_mode": "walk",
"type": "target"

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": 2631.84423828125,
"y": -1016.96533203125
"x": 2631.84,
"y": -1016.97
},
{
"id": 2,
"x": 2605.0615234375,
"y": -986.48974609375,
"x": 2605.06,
"y": -986.49,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2623.919921875,
"y": -944.66015625,
"x": 2623.92,
"y": -944.66,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2618.47802734375,
"y": -919.05419921875,
"x": 2618.48,
"y": -919.05,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 2612.658203125,
"y": -906.33154296875,
"x": 2612.66,
"y": -906.33,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 2609.591796875,
"y": -912.57958984375,
"x": 2609.59,
"y": -912.58,
"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,45 +13,45 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2701.60888671875,
"y": -761.87109375
"x": 2701.61,
"y": -761.87
},
{
"id": 2,
"x": 2688.40087890625,
"y": -772.849609375,
"x": 2688.4,
"y": -772.85,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2682.05224609375,
"y": -777.322265625,
"x": 2682.05,
"y": -777.32,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2697.224609375,
"y": -795.376953125,
"x": 2697.22,
"y": -795.38,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 5,
"x": 2715.7431640625,
"y": -823.50732421875,
"x": 2715.74,
"y": -823.51,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 2733.08056640625,
"y": -836.49609375,
"x": 2733.08,
"y": -836.5,
"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,37 +13,37 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2217.1240234375,
"y": -564.32861328125
"x": 2217.12,
"y": -564.33
},
{
"id": 2,
"x": 2236.54931640625,
"y": -585.27685546875,
"x": 2236.55,
"y": -585.28,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2214.158203125,
"y": -602.19580078125,
"x": 2214.16,
"y": -602.2,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2203.38232421875,
"y": -623.271484375,
"x": 2203.38,
"y": -623.27,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 2188.34375,
"y": -653.61328125,
"x": 2188.34,
"y": -653.61,
"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,101 +13,101 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2794.12451171875,
"y": -1216.42236328125
"x": 2794.12,
"y": -1216.42
},
{
"id": 2,
"x": 2827.83740234375,
"y": -1241.81689453125,
"x": 2827.84,
"y": -1241.82,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2844.529296875,
"y": -1261.75146484375,
"x": 2844.53,
"y": -1261.75,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2864.041015625,
"y": -1283.14501953125,
"x": 2864.04,
"y": -1283.15,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 2887.265625,
"y": -1299.10302734375,
"x": 2887.27,
"y": -1299.1,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 2794.1494140625,
"y": -1216.4072265625,
"x": 2794.15,
"y": -1216.41,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 2843.5927734375,
"y": -1202.70263671875,
"x": 2843.59,
"y": -1202.7,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"id": 8,
"x": 2842.50439453125,
"y": -1197.4599609375,
"x": 2842.5,
"y": -1197.46,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 9,
"x": 2879.37548828125,
"y": -1188.86083984375,
"x": 2879.38,
"y": -1188.86,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 10,
"x": 2880.29345703125,
"y": -1165.3154296875,
"x": 2880.29,
"y": -1165.32,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"id": 11,
"x": 2852.0390625,
"y": -1117.57373046875,
"x": 2852.04,
"y": -1117.57,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"id": 12,
"x": 2839.18115234375,
"y": -1087.25146484375,
"x": 2839.18,
"y": -1087.25,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 13,
"x": 2782.41015625,
"y": -1124.6474609375,
"x": 2782.41,
"y": -1124.65,
"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,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2567.50927734375,
"y": -1424.09423828125
"x": 2567.51,
"y": -1424.09
},
{
"id": 2,
"x": 2560.853515625,
"y": -1421.1826171875,
"x": 2560.85,
"y": -1421.18,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2568.35009765625,
"y": -1375.78515625,
"x": 2568.35,
"y": -1375.79,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2596.810546875,
"y": -1299.25537109375,
"x": 2596.81,
"y": -1299.26,
"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,21 +13,21 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2567.47802734375,
"y": -1424.0517578125
"x": 2567.48,
"y": -1424.05
},
{
"id": 2,
"x": 2513.73876953125,
"y": -1515.3505859375,
"x": 2513.74,
"y": -1515.35,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 3,
"x": 2514.9560546875,
"y": -1526.38232421875,
"x": 2514.96,
"y": -1526.38,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -1,11 +1,11 @@
{
"info": {
"name": "卡萨扎莱宫右下",
"name": "墩墩桃2",
"type": "collect",
"author": "风埠",
"version": "1.0",
"description": "卡萨扎莱宫右下4个墩墩桃",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,21 +13,21 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2342.3232421875,
"y": -4.60888671875
"x": 2342.32,
"y": -4.61
},
{
"id": 2,
"x": 2369.5634765625,
"y": -5.961914062500002,
"x": 2369.56,
"y": -5.96,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2403.70751953125,
"y": -21.48974609375,
"x": 2403.71,
"y": -21.49,
"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,45 +13,45 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2246.1689453125,
"y": -1680.384765625
"x": 2246.17,
"y": -1680.38
},
{
"id": 2,
"x": 2232.2998046875,
"y": -1668.60986328125,
"x": 2232.3,
"y": -1668.61,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2221.48779296875,
"y": -1677.142578125,
"x": 2221.49,
"y": -1677.14,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2185.505859375,
"y": -1656.51904296875,
"x": 2185.51,
"y": -1656.52,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 2178.6845703125,
"y": -1665.076171875,
"x": 2178.68,
"y": -1665.08,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 2172.6630859375,
"y": -1662.22119140625,
"x": 2172.66,
"y": -1662.22,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "风埠",
"version": "1.0",
"description": "4个墩墩桃",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2531.90673828125,
"y": -144.70849609375
"x": 2531.91,
"y": -144.71
},
{
"id": 2,
"x": 2532.67431640625,
"y": -155.0859375,
"x": 2532.67,
"y": -155.09,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2539.8466796875,
"y": -182.474609375,
"x": 2539.85,
"y": -182.47,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 2548.8359375,
"y": -201.54736328125,
"x": 2548.84,
"y": -201.55,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,7 +5,7 @@
"author": "风埠",
"version": "1.0",
"description": "4个墩墩桃",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,45 +13,45 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 2531.96240234375,
"y": -144.7197265625
"x": 2531.96,
"y": -144.72
},
{
"id": 2,
"x": 2530.9150390625,
"y": -120.61474609375,
"x": 2530.92,
"y": -120.61,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2514.51806640625,
"y": -106.619140625,
"x": 2514.52,
"y": -106.62,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2502.95361328125,
"y": -97.82421875,
"x": 2502.95,
"y": -97.82,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 2498.13818359375,
"y": -89.11328125,
"x": 2498.14,
"y": -89.11,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 2503.11865234375,
"y": -73.5615234375,
"x": 2503.12,
"y": -73.56,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -1,11 +1,11 @@
{
"info": {
"name": "未命名路径",
"name": "墩墩桃5",
"type": "collect",
"author": "墩墩桃5",
"version": "1.0",
"description": "4个墩墩桃",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 3591.7177734375,
"y": -787.7001953125
"x": 3591.72,
"y": -787.7
},
{
"id": 2,
"x": 3594.99462890625,
"y": -835.45654296875,
"x": 3594.99,
"y": -835.46,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 3599.67431640625,
"y": -846.42919921875,
"x": 3599.67,
"y": -846.43,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 3601.34521484375,
"y": -860.34521484375,
"x": 3601.35,
"y": -860.35,
"type": "target",
"move_mode": "walk",
"action": ""

View File

@@ -5,21 +5,21 @@
"author": "风埠",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 2220.1376953125,
"y": -431.1787109375,
"x": 2220.14,
"y": -431.18,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 2187.83447265625,
"y": -394.04443359375,
"x": 2187.83,
"y": -394.04,
"action": "",
"move_mode": "walk",
"type": "path"

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": 3252.83642578125,
"y": -591.27685546875
"x": 3252.84,
"y": -591.28
},
{
"id": 2,
"x": 3260.21435546875,
"y": -588.19580078125,
"x": 3260.21,
"y": -588.2,
"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,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 3067.84521484375,
"y": -713.859375
"x": 3067.85,
"y": -713.86
},
{
"id": 2,
"x": 3081.55517578125,
"y": -730.06201171875,
"x": 3081.56,
"y": -730.06,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 3100.880859375,
"y": -748.13525390625,
"x": 3100.88,
"y": -748.14,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 4,
"x": 3098.53125,
"y": -755.26123046875,
"x": 3098.53,
"y": -755.26,
"type": "target",
"move_mode": "walk",
"action": ""