Hello, I am using dry-validation and I have a question about the translations of the default messages, in this example contract
class ClientContract < ApplicationContract
params do
required(:age).value(:integer)
rule(:age) do
key.failure("la edad no puede ser mayor a 80") if key? && values[:age] >= 80
end
end
errors like “is missing” or “must be a integer”
the doubts are:
1 .- what is the structure that I have to use in the errors.yml file?
2.- where do I find the list of all possible messages?
I have looked in the documentation and in the forum but I cannot find the solution.