Ecto.Type.blank?/2

Parsed documentation:
View on GitHub
Checks if an already cast value is blank.

This is used by `Ecto.Changeset.cast/4` when casting required fields.

    iex> blank?(:string, nil)
    true
    iex> blank?(:integer, nil)
    true

    iex> blank?(:string, "")
    true
    iex> blank?(:string, "  ")
    true
    iex> blank?(:string, "hello")
    false

    iex> blank?({:array, :integer}, [])
    true
    iex> blank?({:array, :integer}, [1, 2, 3])
    false

    iex> blank?({:array, Whatever}, [])
    true
    iex> blank?({:array, Whatever}, [1, 2, 3])
    false
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.