lib/dry/schema/value_coercer.rb in dry-schema-0.6.0 vs lib/dry/schema/value_coercer.rb in dry-schema-1.0.0
- old
+ new
@@ -16,10 +16,10 @@
param :type_schema
# @api private
def call(input)
if input.success?
- type_schema[Hash(input)]
+ type_schema[input.to_h]
else
type_schema.each_with_object(EMPTY_HASH.dup) do |key, hash|
name = key.name
value = input[name]