Hi,
Is adding default_accept
or accept
s per action a requirement for embedded resources?
I noticed some strange behaviours without it.
With AshPhoenix, allow_nil?
validations failed (always “required”) for forms created for embedded resources (as per AshPhoenix.Form.for_create(EmbeddedResource, :create, domain: Domain)
).
The other is that an embedded resource that’s part of a union returns a no such input
error for its attributes.
Adding default_accept
solves both of these.
Is this something that needs to be clarified in the docs or are these issues that need a fix?