Hello,
When using one of the built-in validation functions, like validate_format, it's possible to pass an optional :message to set the message on failure. But the validation message for required/mandatory fields is set by cast, which doesn't accept options. Is there currently a way to change the default "can't be blank" message, or do we need to implement cast/5 in Ecto.Changeset to accept an extra opts parameter?
Also related to this, if for example we want our application to support multiple languages, we can't set the message to be returned to the user at the model level (we don't know the user's language preference). So if the model holds the business rules and the user input validation rules, it should probably just return atoms that represent the kind of validation failure. Then only when rendering the view would this be mapped to an error message for the user.
Paulo