$ luarocks install shiva-validator Validates tables of data against declarative rule sets, inspired by
Laravel's validator. Rules are pipe-delimited strings or tables:
'required|string|min:3|max:100'. Built-in rules cover type checking
(string, number, integer, boolean, table, array), size constraints
(min, max, size, between), and format validation (alpha, alphaNum,
alphaDash, numeric, email, url, in, notIn). Custom rules can be
registered with Validator.extend(). Returns a ValidationResult with
passes(), fails(), errors(), firstError(), and allErrors().
Versions
Dependencies
lua >= 5.4