View Source Veli.Validators.Max (Veli v0.2.1)

Max validator.

example

Example

rule = [max: 20]
Veli.valid("valid length", rule)
Veli.valid(30, rule) # invalid

Link to this section Summary

Link to this section Functions

@spec valid?(binary() | maybe_improper_list() | number() | map(), number()) ::
  boolean()