summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-03-04 08:23:58 +0900
committerRandy Morgan <[email protected]>2012-03-04 08:23:58 +0900
commit11d26d323b9715f99bc0ef637fbd1a973a45e2b5 (patch)
tree319dfbb7cb2c11570e571769e95aa43414939de6 /lib
parent0dba5eb6689c326a137394a6ff9143badc31d3ae (diff)
downloadcaxlsx-11d26d323b9715f99bc0ef637fbd1a973a45e2b5.tar.gz
caxlsx-11d26d323b9715f99bc0ef637fbd1a973a45e2b5.zip
revert changes to validation reporting as it breaks backwards compatability
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/package.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb
index 440a1b6a..6a8864f4 100644
--- a/lib/axlsx/package.rb
+++ b/lib/axlsx/package.rb
@@ -131,11 +131,7 @@ module Axlsx
# p.validate.each { |error| puts error.message }
def validate
errors = []
- parts.each do |part|
- next if part[:schema].nil?
- e = validate_single_doc(part[:schema], part[:doc])
- errors << { :entry => part[:entry], :errors => e } if e.size > 0
- end
+ parts.each { |part| errors.concat validate_single_doc(part[:schema], part[:doc]) unless part[:schema].nil? }
errors
end