Skip to the content.

4. Validator methods

4.1 getCounter obtains the index of the object being validated

4.2 failFastRule when enabled, if one validation group fails the others will not be validated.

4.3 setPropertyOnContext when a value instance is being validated it will be available in context with the declared property name

4.4 getPropertyOnContext when a value instance is available in context with the declared property name it can be retrieved anywhere in the validation tree.

4.5 validate instance

4.6 validate instance with transform results

4.7 validate collection

4.8 validate collection with transform results

4.9 ruleFor instance

4.10 ruleFor instance with field name

4.11 ruleForEach collection

4.12 ruleForEach collection with field name