Open idoa01 opened 4 years ago
thanks for spotting this and reporting, it'll be fixed in 1.5.1
can you suggest a workaround for this issue?
@idoa01 yes, you can monkey-patch it like that:
class Dry::Schema::Message::Or::MultiPath
def path
[]
end
end
this should make it work
will pick this one up
Following issue #245, I tried to implement a similar situation inside a
dry-validators
contract, but the following code fails when there is at least one rule involved, see example belowwhich crashes with the following stacktrace:
Expected behavior not to fail , produce the following output (like it does if the
rule(:first_name)
doesn't exist)Your environment