|
checks('number', '?string', 'table|boolean')
validate.args provides facilities to validate arguments to functions.
It provides a basic set of validation constraints which can be expanded
upon. It understands positional and named arguments.
A rockspec and a complete tarball are available here:
https://bitbucket.org/djerius/validate.args/downloads/validate-args-1.0.1-1.rockspec
https://bitbucket.org/djerius/validate.args/downloads/validate-args-1.0.1.tar.gz