retort v2.7.0 Retort.Response.Error.Ecto.Changeset View Source

Extensions to Ecto.Changeset to allow Retort.Response.Error.t to be turned (back) into Ecto.Changeset.t errors.

Link to this section Summary

Functions

Converts alembic_error to equivalent Ecto.Changeset.t validation error and adds it to changesset

Converts alembic_errors to equivalent Ecto.Changeset.t validation errors and adds them to changeset

Link to this section Functions

Link to this function add_alembic_error(changeset, error) View Source
add_alembic_error(Ecto.Changeset.t(), Alembic.Error.t()) :: Ecto.Changeset.t()

Converts alembic_error to equivalent Ecto.Changeset.t validation error and adds it to changesset

Link to this function add_alembic_errors(changeset, alembic_errors) View Source
add_alembic_errors(Ecto.Changeset.t(), [Alembic.Error.t()]) :: Ecto.Changeset.t()

Converts alembic_errors to equivalent Ecto.Changeset.t validation errors and adds them to changeset