ash extensions
I want to write an ash extension that works with ANY action. it is a custom validator + resolver
Aim: Validates that file exits and resolves the relative path to absolute path.
Ideally this DSL would do
i am inspired by
https://hexdocs.pm/ash/dsl-ash-resource.html#actions-create-validate
so this validate block is inside the
i looked at the original ash code But that does not mention
So there are two questions:
1. how does ash include
2. how can I do the same?
My attempt is here:
https://github.com/TwistingTwists/ash_file_utils/blob/main/lib/example_resource.ex
the error I have is:
Aim: Validates that file exits and resolves the relative path to absolute path.
Ideally this DSL would do
i am inspired by
https://hexdocs.pm/ash/dsl-ash-resource.html#actions-create-validate
so this validate block is inside the
action block. i looked at the original ash code But that does not mention
validate.So there are two questions:
1. how does ash include
validate inside it's own action block? 2. how can I do the same?
My attempt is here:
https://github.com/TwistingTwists/ash_file_utils/blob/main/lib/example_resource.ex
the error I have is:
actions is exported both by Ash and my AshFileUtils.GitHub
Contribute to TwistingTwists/ash_file_utils development by creating an account on GitHub.
GitHub
A declarative, extensible framework for building Elixir applications. - ash-project/ash
