retort v2.1.0 Retort.Response.Error.Ecto.Changeset

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

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

Functions

add_alembic_error(changeset, error)

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

add_alembic_errors(changeset, alembic_errors)

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