lib/dry/schema/message_compiler.rb in dry-schema-1.5.4 vs lib/dry/schema/message_compiler.rb in dry-schema-1.5.5
- old
+ new
@@ -114,9 +114,10 @@
msg = messages.translate("errors.unexpected_key")
Message.new(
path: path,
+ meta: msg[:meta] || EMPTY_HASH,
text: msg[:text],
predicate: nil,
input: input
)
end