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

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?(any(), number()) :: boolean()