Closed barnabasJ closed 3 months ago
So we probably need to not set default values in fragments. Might actually be pretty difficult to accomplish.
Actually...we could set some process context to say that we're in a fragment, and doing that could cause the DSL macros to remove the default
key on any fragments? Would also need to remove the required
key, which is a bit problematic. Perhaps we should instead store wether or not a given DSL key was set, and then have code_interface
in Ash not do what it currently does (using define_for false
as a sentinal "disabled" value).
Unfortunately there is no good way for us to do this.
Describe the bug
When using fragments, default values should not overwrite properties set on the resource while merging.
To Reproduce A minimal set of resource definitions and calls that can reproduce the bug.
This leads to the following compile warning:
Expected behavior A clear and concise description of what you expected to happen.
code_interface.define_for should not be overwritten.
Runtime
Additional context Add any other context about the problem here.