Return error codes/keys instead of text

I’m trying to use dry-validation with an API where I return codes like blank, inclusion, invalid and I wonder if I can achieve the same with dry-validation.

There’s a really old thread here about this: Get keys instead of sentences for validation errors

But that looks outdated. Is there any new way to get those?

This is supported. Here’s a spec that shows the usage. If you’ve found any issues please report it.