AshMoney with Ash.Generator
Hi,
I have a resource that has an AshMoney attribute. When trying to create to with Ash.Generator I'm getting the following error
I'm tried wrapping it in a StreamData function with no change. I can't see anything in the docs about custom types with Ash.Generator. Do I need to patch AshMoney to provide the function or is there a general way to handle custom types?
8 Replies
You should be able to provide a custom generator or value for that particular field
How are you trying to use it?
Hmmm...are there other money inputs for that action?
there is a target resource which this is a child of which has the same two attributes.
Are there calls in the action to manage relationships?
Or anything like that?
yes, the target is setup with direct_control on the prices
Hmm...try setting prices to an empty list in defaults?
That fixed it, thank you so much