You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define a code interface for a create or update action
Pass a keyword list of inputs instead of a map
Watch the world burn.
Expected behavior
The user should get an error that indicates that the input is of the incorrect type, rather than a backtrace from a partial attempt to evaluate the params as options.
Runtime
Elixir version
Erlang version
OS
Ash version 2.18.2
any related extension versions
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Something about this seems very strange. Specifically, the way it fails seems wrong. However, the way we determine the difference between opts lists and input maps is vie type detection, so the error you should get is something like "no such options [:name, ...]"
I don't see how this could possibly be related to passing a keyword list instead of a map in. When I do that I get an error about merging maps. Are you sure the error you posted comes from providing a keyword list?
So, I've got no idea where that particular error is coming from, but I fixed an error that I found when doing the same thing in our tests here: c31fbc9
Seems like there is something else going on for you though, so can you dig some more and confirm that the maps/keyword list is actually the cause?
Describe the bug
To Reproduce
Expected behavior
The user should get an error that indicates that the input is of the incorrect type, rather than a backtrace from a partial attempt to evaluate the params as options.
Runtime
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: