diff --git a/lib/specs.js b/lib/specs.js index c5db3a422b..71f5c6f52d 100644 --- a/lib/specs.js +++ b/lib/specs.js @@ -552,15 +552,7 @@ var processDocument = function (documentMetadata, results) { // Do not process unresolved properties if (!_.isUndefined(property)) { validateSchemaConstraints(documentMetadata, property, pPath, results); - - if (iProperties.indexOf(name) > -1) { - createErrorOrWarning('CHILD_' + code + '_REDECLARES_PROPERTY', - 'Child ' + code.toLowerCase() + ' declares property already declared by ancestor: ' + - name, - pPath, results.errors); - } else { - dProperties.push(name); - } + dProperties.push(name); } });