lib/schemacop/validator.rb in schemacop-1.0.1 vs lib/schemacop/validator.rb in schemacop-1.0.2

- old
+ new

@@ -24,9 +24,10 @@ validate_branch '', schema, data end def prepare_schema(schema) schema = { types: schema } unless schema.is_a?(Hash) + schema = schema.dup if schema.include?(:type) schema[:types] = schema.delete(:type) else schema[:types] = :array unless schema[:array].nil?