Skip to content

Commit

Permalink
fix: not schema error message
Browse files Browse the repository at this point in the history
  • Loading branch information
p-spacek committed May 7, 2024
1 parent 070074b commit 944ad29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languageservice/parser/jsonParser07.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ function validate(
validationResult.problems.push({
location: { offset: node.offset, length: node.length },
severity: DiagnosticSeverity.Warning,
message: localize('notSchemaWarning', 'Matches a schema that is not allowed.'),
message: notSchema.errorMessage || localize('notSchemaWarning', 'Matches a schema that is not allowed.'),
source: getSchemaSource(schema, originalSchema),
schemaUri: getSchemaUri(schema, originalSchema),
});
Expand Down

0 comments on commit 944ad29

Please sign in to comment.