Ecto.Validator.Predicates.member_of/4

Parsed documentation:
View on GitHub
Validates the attribute is member of the given enumerable.

This validator has the same semantics as calling `Enum.member?/2`
with the given enumerable and value.

Nil values are not matched against (skipped).

## Options

* `:message` - defaults to "is not included in the list"

## Examples

    validate user,
      gender: member_of(~w(male female other))

    validate user,
      age: member_of(0..99)
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.