Merge pull request #107 from MikeRalphson/patch-1

Typo s/IGNORRED/IGNORED
This commit is contained in:
Roman Hotsiy 2016-09-08 22:08:10 +03:00 committed by GitHub
commit 38944193dd

View File

@ -208,7 +208,7 @@ class SchemaDereferencer {
let keysCount = Object.keys(schema).length; let keysCount = Object.keys(schema).length;
if ( keysCount > 2 || (keysCount === 2 && !schema.description) ) { if ( keysCount > 2 || (keysCount === 2 && !schema.description) ) {
WarningsService.warn(`Other properties are defined at the same level as $ref at "#${pointer}". ` + WarningsService.warn(`Other properties are defined at the same level as $ref at "#${pointer}". ` +
'They are IGNORRED according to the JsonSchema spec'); 'They are IGNORED according to the JsonSchema spec');
resolved.description = resolved.description || schema.description; resolved.description = resolved.description || schema.description;
} }