validators/structure library
Structure Validators
This file contains validators for checking the structure of complex data types.
Functions
-
eskema(
Map< String, IValidator> mapEskema) → IValidator - Returns a Validator that checks a value against a Map eskema that declares a validator for each key.
-
eskemaList<
T> (List< IValidator> eskema) → IValidator - Returns a Validator that checks a value against the eskema provided, the eskema defines a validator for each item in the list
-
eskemaStrict(
Map< String, IValidator> schema) → IValidator -
Returns a Validator that checks a value against a Map eskema and fails if
any keys exist in the map that are not defined in the
schema
. -
listEach(
IValidator itemValidator) → IValidator -
Returns a Validator that runs
itemValidator
for each item in the list