Skip to content

Commit

Permalink
fixup! Update libraries/node-core-library/src/JsonSchema.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Aug 12, 2024
1 parent 8924460 commit 88e9da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/node-core-library/src/JsonSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ export class JsonSchema {
this.validateObjectWithCallback(
jsonObject,
(errorInfo: IJsonSchemaErrorInfo) => {
const prefix: string =
options?.customErrorHeader ?? 'JSON validation failed:';
const prefix: string = options?.customErrorHeader ?? 'JSON validation failed:';

throw new Error(prefix + os.EOL + filenameForErrors + os.EOL + errorInfo.details);
},
Expand All @@ -371,6 +370,7 @@ export class JsonSchema {

if (options?.ignoreSchemaField) {
const {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
$schema,
...remainder
} = jsonObject;
Expand Down

0 comments on commit 88e9da1

Please sign in to comment.