validate-args

Function argument and structure validation

$ luarocks install validate-args

validate.args provides a framework for validating function arguments and data structures. Scalar and (nested) table values as well as lists of values of the same type may be validated.

validate.args provides both procedural and object-oriented interfaces. The significant difference between the interfaces is that the procedural interface may be influenced by global settings while the object-oriented interface keeps those settings local to each object. Objects may themselves be cloned, allowing for nested hierarchies of validation specifications. Changes to parent objects do not affect child objects, and vice-versa.

Versions

1.5.9-17 years ago1,707 downloads
1.5.8-18 years ago90 downloads
1.5.4-19 years ago20,648 downloads
1.5.2-19 years ago84 downloads
1.2.4-29 years ago64 downloads
1.0.1-19 years ago204 downloads

Dependencies

lua >= 5.1
luassert >= 1.7.7

Labels

Manifests