lua-users home
lua-l archive

[ANN] validate.args - 1.2.4

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,
This is an update to the validate.args package, which provides a
framework for validation of function arguments and data structures.
A few of the major changes since the last public release (1.0.1) are:
 * the validation engine now uses objects to encapsulate state and
 allows sub-classing of objects
 * hooks are provided to massage data before and after validation
 * A new module validate.inplace provides "live" validation of data
 during assignment to table elements
The last addition makes validation more user-friendly by providing proxy
tables which validate on the fly, so that a user can do something like
 config.foo = -3
and the assignment will throw an error if config.foo is only supposed to
take positive numbers.
A rockspec and a complete tarball are available here:
https://bitbucket.org/djerius/validate.args/downloads/validate-args-1.2.4-1.rockspec
https://bitbucket.org/djerius/validate.args/downloads/validate-args-1.2.4.tar.gz
A more detailed list of changes is here:
https://bitbucket.org/djerius/validate.args/src/8b47ced5e539/NEWS

AltStyle によって変換されたページ (->オリジナル) /