mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-22 21:59:49 +08:00
🔧 允许联合类型验证
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user