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
Given an entity which takes a keyword list as it's first argument:
%Spark.Dsl.Entity{ name: :example, args: [:my_options], schema: [ my_options: [ type: :non_empty_keyword_list, required: true ] ] }
Attempting to use it in a DSL like so:
example marty: :mcfly
Will raise an error about there being no option named :marty in the entity's schema.
:marty
Expected behavior A clear and concise description of what you expected to happen.
It should return the built entity with [{:marty, :mcfly}] in the :my_options field.
[{:marty, :mcfly}]
:my_options
Additional context Discussed in Slack in the context of adding a load entity to Ash.Reactor action steps.
load
Ash.Reactor
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Given an entity which takes a keyword list as it's first argument:
Attempting to use it in a DSL like so:
Will raise an error about there being no option named
:marty
in the entity's schema.Expected behavior
A clear and concise description of what you expected to happen.
It should return the built entity with
[{:marty, :mcfly}]
in the:my_options
field.Additional context
Discussed in Slack in the context of adding a
load
entity toAsh.Reactor
action steps.The text was updated successfully, but these errors were encountered: