Skip to content

Commit

Permalink
added additional root object mention cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed May 29, 2024
1 parent 5470e21 commit 91e05b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/json-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export class JSONValidation {
const message = error.message
// don't mention root object
.replaceAll("in `#` ", "")
.replaceAll("at `#`", "")
.replaceAll("/", ".")
.replaceAll("#.", "");
return message;
Expand Down

0 comments on commit 91e05b4

Please sign in to comment.