Skip to content

Commit 7688793

Browse files
committed
ajv upgrade
1 parent 76f7707 commit 7688793

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/firebaseConfigValidate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ export function getValidator(): ValidateFunction {
3131

3232
export function getErrorMessage(e: ErrorObject) {
3333
if (e.keyword === "additionalProperties") {
34-
return `Object "${e.instancePath}" in "firebase.json" has unknown property: ${JSON.stringify(
34+
return `Object "${e.dataPath}" in "firebase.json" has unknown property: ${JSON.stringify(
3535
e.params,
3636
)}`;
3737
} else if (e.keyword === "required") {
3838
return `Object "${
39-
e.instancePath
39+
e.dataPath
4040
}" in "firebase.json" is missing required property: ${JSON.stringify(e.params)}`;
4141
} else {
42-
return `Field "${e.instancePath}" in "firebase.json" is possibly invalid: ${e.message}`;
42+
return `Field "${e.dataPath}" in "firebase.json" is possibly invalid: ${e.message}`;
4343
}
4444
}

0 commit comments

Comments
 (0)