This should not work… as it should be a field
You should use
%Ecto.Changeset{valid?: true, changes: %{street1: street1, street2: street2...}}
# or
%Ecto.Changeset{valid?: true, changes: address}
In the example I gave, whatever is the shemas, and address is just a field of %Whatever{}
You might find ecto changeset structure here. From docs…
changes - The changes from parameters that were approved in casting






















