lib/dry/schema/value_coercer.rb in dry-schema-1.0.3 vs lib/dry/schema/value_coercer.rb in dry-schema-1.1.0

- old
+ new

@@ -20,9 +20,12 @@ if input.success? type_schema[input.to_h] else type_schema.each_with_object(EMPTY_HASH.dup) do |key, hash| name = key.name + + next unless input.key?(name) + value = input[name] hash[name] = input.error?(name) ? value : key[value] end end