🔧 允许联合类型验证

This commit is contained in:
BTMuli
2026-04-21 12:02:58 +08:00
parent ed07c1cce9
commit 73009d68b4

View File

@@ -10,7 +10,7 @@ import AbyssJson from "../schema/abyss.json" with { type: "json" };
import ChallengeJson from "../schema/challenge.json" with { type: "json" };
import CombatJson from "../schema/combat.json" with { type: "json" };
const ajv = new Ajv.Ajv();
const ajv = new Ajv.Ajv({ strictTypes: false });
const AbyssValidate = ajv.compile(AbyssJson);
const ChallengeValidate = ajv.compile(ChallengeJson);