AshPhoenix - Union: "is not a map" error
I can't figure out why these params don't work:
This is the failed form:
Can anyone please help me to debug?
7 Replies
Hm...something is strange there
Might need a repro/issue as it doesn't jump out at me
You can try submitting the form with a
!
to see if you get a better error
Or using the new raw_errors
tool to get the errorsHi @ZachDaniel, thanks so much for your reply and the hints! Unfortunately, I'm still running into the same issue.
I've created a project reproducing the issue: https://github.com/minibikini/union_form_repro
Full disclosure, I haven't been getting much sleep lately, so it's totally possible I'm just overlooking something obvious. Apologies in advance if it's something silly! 🙌
Did you open an issue as well?
I lost track of this and issues is the best way for me to track things that need fixing
@minib Did you try with
type: MyApp.Services.Credentials.XyzCredentials
and without the constraints: [instance_of ...]
?
Also, shouldn't this:
be
yes, tried both
I've listed CredentialsType in the config as cutom type
credentials_type
.
But in the reproducing repo I've used the module name instead.
Nope, thought this belongs to here, support forum. Will open an issue.just created, here you go https://github.com/ash-project/ash_phoenix/issues/408
GitHub
AshPhoenix.Form: "is not a map" error for a union field · Issue #4...
Code of Conduct I agree to follow this project's Code of Conduct AI Policy I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue. Versions Na...