Maru.Params.Types.List (maru_params v0.2.10)

Buildin Type: List

parser-arguments

Parser Arguments

* `:unique` - whether unique the data in list with `Enum.uniq`
  * `true` - unique the list
  * `false` (default) - do NOT unique the list
* `:string_strategy` - how to parse a string value
  * `:codepoints` (default) - decode by `String.codepoints/1`
  * `:charlist` - decode by `String.to_charlist/1`
  * `:wrap` - decode by `List.wrap/1`

validator-arguments

Validator Arguments

* `:max_length` - max length of the list
* `:min_length` - min length of the list
* `:length_range` - length range of the list

examples

Examples:

requires :tags, List[String], max_length: 3
requires :chars, List, string_strategy: :charlist

Link to this section Summary

Link to this section Functions

Link to this function

parse(input, args)

Link to this function

parser_arguments()

Link to this function

validate(parsed, arg2)

Link to this function

validator_arguments()