View Source Veli.Types.Map (Veli v0.2.1)

Custom struct for validator map lookup.

example

Example

rule = %Veli.Types.Map{
  rule: %{
    username: [type: :string, min: 3, max: 32],
    password: [type: :string, min: 8, max: 72],
    accepted: [type: :boolean, match: true]
  },
  error: "Value must be a map"
}