Builders
validate is fun(value): boolean, string?. It runs after the built-in checks inside pcall.
Define
UgSchemaRule[]
required
One rule per argument. Optional rules MUST be trailing.
Validate
boolean
table?
Fresh values with
n set to the declared count. Use table.unpack(args, 1, args.n).string?
Failure path, such as
arg 1.items[2].name: MUST be a string. For server logs only.