fix: pass matcher down in nested validation

This commit is contained in:
Zach Daniel 2022-06-30 19:27:55 -04:00
parent 0afd54e813
commit bf9c96c109

View file

@ -880,6 +880,7 @@ defmodule AshPhoenix.Form do
validated =
validate(matching_form, params,
errors: errors?,
matcher: matcher,
prev_data_trail?: prev_data_trail
)
|> Map.put(:as, form.name <> "[#{key}][#{index}]")