Ecto cast_assoc - %UndefinedFunctionError

Hi thanks very much. Apologies but if i assign a type :map to details, i get an error that an :assoc is expected which is why i defined the type as an :assoc.