We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug This exception is raised (KeyError) key :arguments not found in: nil
(KeyError) key :arguments not found in: nil
To Reproduce Define an embedded resource like so:
defmodule Foo do use Ash.Resource, data_layer: :embedded actions do defaults [:read, :destroy] end attributes do uuid_primary_key :id end code_interface do define :create end end
Expected behavior I would expect a more helpful error telling me my code interface definition is incorrect.
Runtime
1.17.3
27
macOS 15.2
3.4.47
The text was updated successfully, but these errors were encountered:
When you add a domain: use Ash.Resource, domain: Domain, data_layer: :embedded you get a more sensible error:
use Ash.Resource, domain: Domain, data_layer: :embedded
** (Spark.Error.DslError) [Foo] interfaces -> interface -> create: The interface of Foo refers to a non-existent action create (ash 3.4.55) lib/ash/code_interface.ex:11: Ash.CodeInterface.require_action/2 (stdlib 6.2) erl_eval.erl:919: :erl_eval.do_apply/7 (stdlib 6.2) erl_eval.erl:663: :erl_eval.expr/6 (stdlib 6.2) erl_eval.erl:271: :erl_eval.exprs/6 (elixir 1.18.1) lib/enum.ex:1714: Enum."-map/2-lists^map/1-1-"/2 (spark 2.2.36) /home/ken/nutrea/lib/nutrea/foo.ex:1: Spark.Dsl.__before_compile__/1
Sorry, something went wrong.
No branches or pull requests
Describe the bug
This exception is raised
(KeyError) key :arguments not found in: nil
To Reproduce
Define an embedded resource like so:
Expected behavior
I would expect a more helpful error telling me my code interface definition is incorrect.
Runtime
1.17.3
27
macOS 15.2
3.4.47
The text was updated successfully, but these errors were encountered: