Proca.Contact.Input behaviour (proca v3.4.1)
When api resolver validates contact map, it can use these helper funcitons.
Link to this section Summary
Callbacks
Accepts attributes and returns a (virtual) validated data changeset
Functions
Validate if field is an url. Options: type: "image" - check if file extension matches mime type general class ("image/*" in this case)
Link to this section Callbacks
Link to this callback
from_input(map)
Specs
from_input(map()) :: Ecto.Changeset.t()
Accepts attributes and returns a (virtual) validated data changeset
Link to this section Functions
Link to this function
is_url_type?(arg1, type)
Link to this function
upcase(params, field)
Link to this function
validate_address_line(chst, field)
Link to this function
validate_country_format(ch)
Link to this function
validate_email(chst, field)
Link to this function
validate_name(chst, field)
Link to this function
validate_older(chst, field, years)
Link to this function
validate_phone(chst, field)
Link to this function
validate_postcode(chst)
Link to this function
validate_url(ch, field, opts \\ [])
Validate if field is an url. Options: type: "image" - check if file extension matches mime type general class ("image/*" in this case)