lib/airborne/request_expectations.rb in airborne-0.2.3 vs lib/airborne/request_expectations.rb in airborne-0.2.4

- old
+ new

@@ -120,10 +120,12 @@ next expect_json_types_impl(type, value) if hash?(type) next type.call(value) if type.is_a?(Proc) val_class = value.class - if type.to_s.include?('array_of') + type_string = type.to_s + + if type_string.include?('array_of') && !type_string.include?('or_null') check_array_types(value, val_class, prop, type) else expect_type(type, val_class, prop) end end