Brcpfcnpj icon indicating copy to clipboard operation
Brcpfcnpj copied to clipboard

Make validate remove previous errors on the field, if any

Open fmbraga opened this issue 2 years ago • 1 comments

Solves #40

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

fmbraga avatar Mar 21 '22 15:03 fmbraga

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?

VitorTrin avatar Mar 21 '22 15:03 VitorTrin