Validation Module

The validation module resides in wd.cdb.validation. It defines the following functions:


Register a new validator defined from the validatorSpec. See the documentation for the Validation class for details on the structure of validatorSpec.


Get the validator named validatorName. Returns undefined if no such validator was found.

clone(validatorName, extensions)

Creates a new validator based off the properties in the validator named validatorName, extended with the properties in extensions. The extensions object
should at least replace the name property, though you'll probably also want to replace the validationFunction.