dry-rb / dry-schema

Coercion and validation for data structures
https://dry-rb.org/gems/dry-schema
MIT License
425 stars 109 forks source link

Use Messages#[] to translate unexpected keys #340

Closed robhanlon22 closed 3 years ago

robhanlon22 commented 3 years ago

Messages#[] handles meta/no meta cases more gracefully and has better interoperability with the I18n backend. This brings MessageCompiler#visit_unexpected_key up to parity with MessageCompiler#visit_predicate.

robhanlon22 commented 3 years ago

HELLO, IT IS I!!

Rebased and squashed :)