Closed nathanl closed 4 years ago
@nathanl I know this is 2.5 years too late, but it appears that handle_update/3
returns whatever __MODULE__.model.changeset(model, attributes)
returns. So just follow whatever Ecto is using, which is the last example in the issue.
The docs for
v0.3.0
show returning an error like this fromhandle_update
:If I do that, I get an error from
ja_serializer
(I'm using0.12.0
):From digging in its source, I figured out that I could successfully render errors formatted like:
Are the docs wrong? If not, what am I doing wrong?