Module resty.dynacode.validator

Provide a mini validation library based on lua type and presence.

Functions

valid (rules, tbl) Validation function.


Functions

valid (rules, tbl)
Validation function.

Parameters:

  • rules table - the rules to apply
  • tbl table - the table to be validated

Returns:

  1. bool - status - if it's a success or not
  2. string - when there's an error this is the error message
generated by LDoc 1.4.6 Last updated 2022-03-10 17:13:14