Added information about arity and return values to documentation of 'validate_map_format'

This commit is contained in:
Alex Tavarez
2025-07-25 12:30:00 -04:00
parent f812711d9d
commit ba6ce82d83

View File

@@ -8,7 +8,11 @@ defmodule Sukaato.CustomValidators do
""" """
@doc """ @doc """
Validate a map or array/list column for an Ecto database table update. Validate a map , array, or list column for an Ecto database table update.
Arity: 3
Return Value: changeset || add_err/3
""" """
def validate_map_format(changeset, field, conventional_mapping) when is_atom(field) do def validate_map_format(changeset, field, conventional_mapping) when is_atom(field) do
field_value = get_field(changeset, field) field_value = get_field(changeset, field)