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

- old
+ new

@@ -122,10 +122,10 @@ val_class = value.class type_string = type.to_s - if type_string.include?('array_of') && !type_string.include?('or_null') + if type_string.include?('array_of') && !(type_string.include?('or_null') && value.nil?) check_array_types(value, val_class, prop, type) else expect_type(type, val_class, prop) end end