Open woto opened 3 years ago
Found the error, it appears that if the key name is a subset of a valid key the validator does not detect it,
It this case 'mail' is a subset of 'email'.
Should be easy to fix then 🙂
https://github.com/dry-rb/dry-schema/issues/325#issuecomment-818309219 This is another unexpected behavior I encountered
@patodevilla please report this as well
Hi. Is it documented behaviour? I think it is not.
It blames : unexpected_too key, but not :mail Seems it’s happened because
mail
is a substring ofemail
Sorry didn’t have time to go deeper.