lib/dry/schema/processor.rb in dry-schema-1.6.2 vs lib/dry/schema/processor.rb in dry-schema-1.7.0
- old
+ new
@@ -82,17 +82,17 @@
#
# @return [Result]
#
# @api public
def call(input)
- Result.new(input, input: input, message_compiler: message_compiler) do |result|
+ Result.new(input.dup, message_compiler: message_compiler) do |result|
steps.call(result)
end
end
alias_method :[], :call
# @api public
- def xor(other)
+ def xor(_other)
raise NotImplementedError, "composing schemas using `xor` operator is not supported yet"
end
alias_method :^, :xor
# Merge with another schema