Module validators

Module validators 

Source
Expand description

Reusable field validators

These validators are used by the macro system to validate entity fields

Functionsยง

date_format
Validator: date must match format
in_list
Validator: value must be in allowed list
max_value
Validator: number must not exceed maximum
optional
Validator: field is optional (always valid)
positive
Validator: number must be positive
required
Validator: field is required (not null)
string_length
Validator: string length must be within range