Brcpfcnpj
Brcpfcnpj copied to clipboard
Make validate remove previous errors on the field, if any
Solves #40
The PR will remove field from :errors, and adjust :valid? accordingly
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?