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 29, 2024
1 parent 0871dc1 commit c336af9
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 @@ -724,7 +724,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 c336af9

Please sign in to comment.