lib/cfoundry/validator.rb in cfoundry-0.4.16 vs lib/cfoundry/validator.rb in cfoundry-0.4.17

- old
+ new

@@ -20,9 +20,11 @@ when Hash val.is_a?(Hash) && type.all? { |name, subtype| val.key?(name) && value_matches?(val[name], subtype) } + when nil + true else val.is_a?(Object.const_get(type.to_s.capitalize)) end end