parsing nested fields when argument is a TypedStruct
I have the following typed struct:
I want to be able to receive it as an input on an action:
argument :weights, Milvus.WeightRanker, default: fn -> Milvus.WeightRanker.new!(%{}) end and have Ash automatically parse something like: %{"weights" => %{"dense_vector" => 0}} and pass the fields into the TypedStruct.
Expected:
Actual result:
Is this supported? Am I doing something wrong?2 Replies
Hmm it seems that it is not supported:
Solution
works on latest ash version