lib/jsi/schema/validation/contains.rb in jsi-0.6.0 vs lib/jsi/schema/validation/contains.rb in jsi-0.7.0

- old
+ new

@@ -2,10 +2,10 @@ module JSI module Schema::Validation::Contains # @private def internal_validate_contains(result_builder) - if schema_content.key?('contains') + if keyword?('contains') # An array instance is valid against "contains" if at least one of its elements is valid against # the given schema. if result_builder.instance.respond_to?(:to_ary) results = {} result_builder.instance.each_index do |i|