Validation Decorator Function Name.
The default error message function
An instance of the class that has been decorated.
Property of the object to be validated.
Whether validation should continue
in the event of an error. For example
is a value is undefined,
then there's little point
applying the other validators.
Whether validation should continue in the event of an error.
For example is a value is undefined, then there's little point in applying the other validators.
Constructor function of the instance being validated.
Function that performs the validation of properties containing arrays.
Function that performs the validation of single values.
Validation options.
Validation constraint parameters for the validation.
Validation options specific to the type of validation being performd.
The signature for the decorator, class, and class property combination.
Below is a getSignature example of what would be produced
when the ValidationContext were formed from the
IfValid annotation applied to the purchasePrice
property of a SalesOrder instance.
IfValid_SalesOrder_purchasePrice
Generated using TypeDoc
The
ValidationContextinstance for a certain annotation and property combination is created when the run time loads the class that has been annotated.Example
We have a
nameproperty decorated with the theIsAlphaannotation like this:When that annotation runs it creates a
ValidationContextinstance with the signatureIsAlpha_Person_namethat is specific to thePersonclass and thenameproperty.The
ValidationContextinstance is initialized with the parameters necessary to perform anIsAlphavalidation on thenameproperty of aPersoninstance.