Packages
Process JSONAPI requests in transport and backing store neutral way.
Retired package: Release invalid - %Calcinator{} default authorization_module is misspelled as Subjectless instead of SubjectLess
Current section
Files
Jump to
Current section
Files
lib/calcinator/changeset_view.ex
defmodule Calcinator.ChangesetView do
@moduledoc """
Attempts to show Ecto changeset errors in JSON:API compliant fashion.
"""
alias JaSerializer.EctoErrorSerializer
use JaSerializer.PhoenixView
def render("error-object.json", changeset) do
EctoErrorSerializer.format(changeset)
end
end