From 768879310168ecdada6bd28814d8b8bd72ee7e94 Mon Sep 17 00:00:00 2001 From: Joe Hanley Date: Fri, 3 Jan 2025 14:10:04 -0800 Subject: [PATCH] ajv upgrade --- src/firebaseConfigValidate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/firebaseConfigValidate.ts b/src/firebaseConfigValidate.ts index f662a6d6e66..d52b11fde31 100644 --- a/src/firebaseConfigValidate.ts +++ b/src/firebaseConfigValidate.ts @@ -31,14 +31,14 @@ export function getValidator(): ValidateFunction { export function getErrorMessage(e: ErrorObject) { if (e.keyword === "additionalProperties") { - return `Object "${e.instancePath}" in "firebase.json" has unknown property: ${JSON.stringify( + return `Object "${e.dataPath}" in "firebase.json" has unknown property: ${JSON.stringify( e.params, )}`; } else if (e.keyword === "required") { return `Object "${ - e.instancePath + e.dataPath }" in "firebase.json" is missing required property: ${JSON.stringify(e.params)}`; } else { - return `Field "${e.instancePath}" in "firebase.json" is possibly invalid: ${e.message}`; + return `Field "${e.dataPath}" in "firebase.json" is possibly invalid: ${e.message}`; } }