Errors for nested schemas don't get added to changeset.errors but the field in changeset.changes. Because of this, ValidField didn't work for nested schemas. Getting errors from Ecto.Changesets.traverse_errors/2 instead of using changeset.errors fixes this issue (https://github.com/DockYard/valid_field/issues/29).
Errors for nested schemas don't get added to
changeset.errors
but the field inchangeset.changes
. Because of this, ValidField didn't work for nested schemas. Getting errors fromEcto.Changesets.traverse_errors/2
instead of usingchangeset.errors
fixes this issue (https://github.com/DockYard/valid_field/issues/29).