DoubleEntryLedger.Utils.Changeset (double_entry_ledger v0.2.0)

View Source

Get all errors

Summary

Functions

Returns errors grouped by field as a map of lists of {message_template, opts} tuples.

Functions

all_errors(changeset)

@spec all_errors(Ecto.Changeset.t()) :: String.t()

all_errors_with_opts(changeset)

Returns errors grouped by field as a map of lists of {message_template, opts} tuples.

Messages are not interpolated; templates and their options are preserved for downstream formatting, translation, or logging.