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": 54.341796875,
"y": 139.3583984375,
"x": 54.34,
"y": 139.36,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 53.3505859375,
"y": 139.60498046875,
"x": 53.35,
"y": 139.6,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 3,
"x": 50.1357421875,
"y": 141.318359375,
"x": 50.14,
"y": 141.32,
"action": "",
"move_mode": "fly",
"type": "path"
},
{
"id": 4,
"x": 23.7412109375,
"y": 163.98388671875,
"x": 23.74,
"y": 163.98,
"action": "stop_flying",
"move_mode": "fly",
"type": "path"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,13 +13,13 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -164.5966796875,
"y": 1182.5068359375
"x": -164.6,
"y": 1182.51
},
{
"id": 2,
"x": -164.5595703125,
"y": 1182.51611328125,
"x": -164.56,
"y": 1182.52,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"

View File

@@ -5,37 +5,37 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 1604.4716796875,
"y": 1039.671875,
"x": 1604.47,
"y": 1039.67,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 1608.3642578125,
"y": 1038.4501953125,
"x": 1608.36,
"y": 1038.45,
"action": "",
"move_mode": "walk",
"type": "path"
},
{
"id": 3,
"x": 1609.9423828125,
"y": 1037.3447265625,
"x": 1609.94,
"y": 1037.34,
"action": "",
"move_mode": "fly",
"type": "path"
},
{
"id": 4,
"x": 1742.41015625,
"y": 956.05859375,
"x": 1742.41,
"y": 956.06,
"action": "stop_flying",
"move_mode": "fly",
"type": "path"

View File

@@ -5,29 +5,29 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": -963.3740234375,
"y": -288.93798828125,
"x": -963.37,
"y": -288.94,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": -967.0020358809652,
"y": -273.0002545591651,
"x": -967.0,
"y": -273.0,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -976.5712890625,
"y": -260.20703125,
"x": -976.57,
"y": -260.21,
"action": "nahida_collect",
"move_mode": "walk",
"type": "path"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,13 +13,13 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -255.048828125,
"y": 630.09033203125
"x": -255.05,
"y": 630.09
},
{
"id": 2,
"x": -240.9833984375,
"y": 612.58935546875,
"x": -240.98,
"y": 612.59,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"

View File

@@ -5,21 +5,21 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": -188.50390625,
"y": 972.42919921875,
"x": -188.5,
"y": 972.43,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": -190.8466796875,
"y": 967.80517578125,
"x": -190.85,
"y": 967.81,
"action": "nahida_collect",
"move_mode": "walk",
"type": "path"

View File

@@ -1,11 +1,11 @@
{
"info": {
"name": "鸟蛋01-清泉镇-蒙德2个",
"name": "鸟蛋-清泉镇-蒙德2个",
"type": "collect",
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,13 +13,13 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -867.5654296875,
"y": 1992.21875
"x": -867.57,
"y": 1992.22
},
{
"id": 2,
"x": -921.1162109375,
"y": 1981.32861328125,
"x": -921.12,
"y": 1981.33,
"type": "path",
"move_mode": "run",
"action": "nahida_collect"

View File

@@ -5,21 +5,21 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 1,
"x": 730.345703125,
"y": 1062.060546875,
"x": 730.35,
"y": 1062.06,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 720.9287109375,
"y": 1057.66162109375,
"x": 720.93,
"y": 1057.66,
"action": "nahida_collect",
"move_mode": "walk",
"type": "path"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,13 +13,13 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -473.8759765625,
"y": 442.27685546875
"x": -473.88,
"y": 442.28
},
{
"id": 2,
"x": -446.4951171875,
"y": 433.15283203125,
"x": -446.5,
"y": 433.15,
"type": "path",
"move_mode": "run",
"action": "nahida_collect"

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": 7633.8056640625,
"y": -1646.66796875
"x": 7633.81,
"y": -1646.67
},
{
"id": 3,
"x": 7637.474609375,
"y": -1641.02490234375,
"x": 7637.47,
"y": -1641.02,
"type": "target",
"move_mode": "walk",
"action": "nahida_collect"

View File

@@ -5,45 +5,45 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
"id": 3,
"x": 1121.111328125,
"y": 1190.38427734375,
"x": 1121.11,
"y": 1190.38,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 1102.3779296875,
"y": 1160.71142578125,
"x": 1102.38,
"y": 1160.71,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 1100.2119140625,
"y": 1157.5458984375,
"x": 1100.21,
"y": 1157.55,
"type": "path",
"move_mode": "fly",
"action": ""
},
{
"id": 6,
"x": 1093.1787109375,
"y": 1133.392578125,
"x": 1093.18,
"y": 1133.39,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"id": 7,
"x": 1093.939453125,
"y": 1133.50439453125,
"x": 1093.94,
"y": 1133.5,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"

View File

@@ -1,11 +1,11 @@
{
"info": {
"name": "日落果13-荻花洲-璃月5个",
"name": "鸟蛋-荻花洲-璃月2个",
"type": "collect",
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,21 +13,21 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 253.154296875,
"y": 1285.13916015625
"x": 253.15,
"y": 1285.14
},
{
"id": 2,
"x": 267.2080078125,
"y": 1273.39794921875,
"x": 267.21,
"y": 1273.4,
"type": "path",
"move_mode": "walk",
"action": "nahida_collect"
},
{
"id": 3,
"x": 224.529296875,
"y": 1248.12255859375,
"x": 224.53,
"y": 1248.12,
"type": "path",
"move_mode": "run",
"action": "nahida_collect"

View File

@@ -5,7 +5,7 @@
"author": "不瘦五十斤不改名",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.0"
"bgiVersion": "v0.42.0"
},
"positions": [
{
@@ -13,29 +13,29 @@
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -416.109375,
"y": 729.06494140625
"x": -416.11,
"y": 729.06
},
{
"id": 2,
"x": -404.67578125,
"y": 716.53271484375,
"x": -404.68,
"y": 716.53,
"type": "path",
"move_mode": "run",
"action": ""
},
{
"id": 3,
"x": -366.216796875,
"y": 725.5205078125,
"x": -366.22,
"y": 725.52,
"type": "path",
"move_mode": "run",
"action": ""
},
{
"id": 4,
"x": -350.59765625,
"y": 723.7431640625,
"x": -350.6,
"y": 723.74,
"type": "path",
"move_mode": "run",
"action": "nahida_collect"