Skip to content

Commit

Permalink
revert ajv changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joehan committed Jan 3, 2025
1 parent dfd4f10 commit 9bf0882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/firebaseConfigValidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ export function getValidator(): ValidateFunction {

export function getErrorMessage(e: ErrorObject) {
if (e.keyword === "additionalProperties") {
return `Object "${e.dataPath}" in "firebase.json" has unknown property: ${JSON.stringify(
return `Object "${e.instancePath}" in "firebase.json" has unknown property: ${JSON.stringify(
e.params,
)}`;
} else if (e.keyword === "required") {
return `Object "${
e.dataPath
e.instancePath
}" in "firebase.json" is missing required property: ${JSON.stringify(e.params)}`;
} else {
return `Field "${e.dataPath}" in "firebase.json" is possibly invalid: ${e.message}`;
return `Field "${e.instancePath}" in "firebase.json" is possibly invalid: ${e.message}`;
}
}

0 comments on commit 9bf0882

Please sign in to comment.