Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make validate remove previous errors on the field, if any #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fmbraga
Copy link

@fmbraga fmbraga commented Mar 21, 2022

Solves #40

The PR will remove field from :errors, and adjust :valid? accordingly

@VitorTrin
Copy link
Collaborator

VitorTrin commented Mar 21, 2022

The code you changed is stolen from validate_change (https://github.com/elixir-ecto/ecto/blob/960725b9e0719c79d8296c4852072780e8d5cc3e/lib/ecto/changeset.ex#L1711-L1715). Can you provide an example that shows this isn't the expected behaviour for changeset validations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants