This commit is contained in:
手瓜一十雪 committed 2025-01-25 12:54:39 +08:00
1 parent 4419ed2e4a
commit 1bbfd98bd9
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ export type NetworkConfigKey = keyof OneBotConfig['network'];
export function loadConfig(config: Partial<OneBotConfig>): OneBotConfig {
const ajv = new Ajv({ useDefaults: true });
const ajv = new Ajv({ useDefaults: true, coerceTypes: true });
const validate = ajv.compile(OneBotConfigSchema);
const valid = validate(config);
if (!valid) {