[json] better support for null, and array of types

This commit is contained in:
Martin Aeschlimann
2016-02-10 12:09:34 +01:00
parent 0f6a10b4b0
commit b7e6e6fae7
3 changed files with 55 additions and 10 deletions

View File

@@ -104,7 +104,7 @@ export class ASTNode {
if ((<string[]>schema.type).indexOf(this.type) === -1) {
validationResult.warnings.push({
location: { start: this.start, end: this.end },
message: nls.localize('typeArrayMismatchWarning', 'Incorrect type. Expected one of {0}', schema.type.join())
message: nls.localize('typeArrayMismatchWarning', 'Incorrect type. Expected one of {0}', schema.type.join(', '))
});
}
}