@rgraff did you manage to solve it? As i’m running into an issue where using the AshPhoenix form i’m not getting the error for a path, doing an inspect like so:
form = AshPhoenix.Form.validate(socket.assigns.form, edition_params)
IO.inspect(form, label: "____form")
the source.source.errors
does contain both errors
errors: [
%Ash.Error.Changes.InvalidAttribute{
field: :en,
message: "length must be greater than or equal to %{min}",
private_vars: nil,
value: %{"_unused_lt" => "", "en" => "a", "lt" => ""},
splode: nil,
bread_crumbs: [],
vars: [min: 2],
path: [:title],
stacktrace: #Splode.Stacktrace<>,
class: :invalid
},
%Ash.Error.Changes.InvalidAttribute{
field: :content_types,
message: "must have %{min} or more items",
private_vars: nil,
value: [],
splode: nil,
bread_crumbs: [],
vars: [min: 1],
path: [],
stacktrace: #Splode.Stacktrace<>,
class: :invalid
}
],
but the actual errors doesn’t contain the title.en
error:
errors: [content_types: {"must have %{min} or more items", [min: 1]}],
This is a custom ash type based on map. here’s a post with more details: