View Source MalanPhoenixUtils.Ecto.Changeset (malan_phoenix_utils v0.1.0)
Link to this section Summary
Functions
If any of the top-level keys in data
are Ecto.Changeset
s, apply their changes.
Convert changeset errors into a String
Convert changeset errors into a list of String
s
Validates that the property specified does NOT match the provided regex.
Link to this section Functions
If any of the top-level keys in data
are Ecto.Changeset
s, apply their changes.
This is not recursive. It onliy does the top level. Also changes are applied whether they are valid or not, so consider whether that's the behavior you want.
Convert changeset errors into a String
examples
Examples
MalanPhoenixUtils.Ecto.Changeset.errors_to_str_list(changeset)
# TODO example needs updated
[who: {"who must be a valid ID of a user", []}]
Convert changeset errors into a list of String
s
examples
Examples
MalanPhoenixUtils.Ecto.Changeset.errors_to_str_list(changeset)
# TODO example needs updated
[who: {"who must be a valid ID of a user", []}]
Validates that the property specified does NOT match the provided regex.
This function is essentially the opposite of validate_format()