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

Outside validator.

example

Example

rule = [type: :integer, outside: [0, 2, 4, 8]]
Veli.valid(12, rule) # valid
Veli.valid(0, rule) # not valid

Link to this section Summary

Link to this section Functions

@spec valid?(any(), list()) :: boolean()