fix: properly require attributes on creates

This commit is contained in:
Zach Daniel 2023-04-11 09:42:11 -04:00
parent 363a43eb08
commit 36d6380c6e

View file

@ -386,12 +386,13 @@ defmodule Ash.Actions.Create do
if changeset.context[:private][:action_result] do
changeset
else
changeset
|> Ash.Changeset.require_values(
:create,
true,
final_check
)
changeset =
changeset
|> Ash.Changeset.require_values(
:create,
true,
final_check
)
{changeset, _} =
Ash.Actions.ManagedRelationships.validate_required_belongs_to(