Skip to content

Commit

Permalink
code review tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfaber authored and Joe Faber committed Sep 17, 2016
1 parent 88c92c2 commit 0cd6ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json-schema/attributes/items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.validate(current_schema, data, fragments, processor, validator, options

when Array
items.each_with_index do |item_schema, i|
next unless i < data.length
break if i >= data.length
schema = JSON::Schema.new(item_schema, current_schema.uri, validator)
schema.validate(data[i], fragments + [i.to_s], processor, options)
end
Expand Down

0 comments on commit 0cd6ec0

Please sign in to comment.