From 2a119d7f1974bf9924242a598f02fe7b34cb85ae Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 1 Feb 2022 13:08:58 +0000 Subject: Fix signature for ajv v8.x --- src/shared/settings/Settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/settings/Settings.ts') diff --git a/src/shared/settings/Settings.ts b/src/shared/settings/Settings.ts index 6c4fa0a..2294c67 100644 --- a/src/shared/settings/Settings.ts +++ b/src/shared/settings/Settings.ts @@ -44,7 +44,7 @@ export default class Settings { if (!valid) { const message = (validate as any) .errors!.map((err: Ajv.ErrorObject) => { - return `'${err.dataPath}' ${err.message}`; + return `'${err.instancePath}' ${err.message}`; }) .join("; "); throw new TypeError(message); -- cgit v1.2.3