Ecto Changeset

Hello everyone, I’m wondering if the changesets of a schema can execute some sort of key matching. For example inside my attributes map, I have a key :nickname, but it is named :username in the schema. Does the Changeset support some sort of keys replacing, or is it something that has to be donde manually as a validating function?

Usually I’d consider this outside the scope of the changeset function entirely. External data that doesn’t use internal names should generally be converted at the edge.

1 Like