Maru.Params.Types.Atom (maru_params v0.2.6)

Buildin Type: Atom

Validator Arguments

* `:ecto_enum` - validate input by `Ecto.Enum.dump_values/2`
* `:values` - validate output is one item of given values

Examples

optional :role, Atom, values: [:role1, :role2]
optional :fruit, Atom, ecto_enum: {User, :fruit}

Link to this section Summary

Link to this section Functions

Link to this function

parse(input, arg2)

Link to this function

parser_arguments()

Link to this function

validate(parsed, arg2)

Link to this function

validator_arguments()