newRuleset()

Overview

public array function newRuleset(
      required string name 
    ,          any    rules
)

Registers a new ruleset. See Validation framework for full usage documentation.

Arguments

NameTypeRequiredDescription
namestringYesName for the ruleset
rulesanyNoEither: an array of structs, json string evaluating to array of structs, or a filepath containing json