Namespace: utilityContext

utilityContext

This is the function context used in some methods/functions in validations processes.

Also, this object has all the methods in the validator package. So you can shortcut them easily.

Members


<static> get :function

A method used to get another field value in the data map used in the validation. You need to pass the name of the field as a first parameter and will return its value in the data map.

If the map was nested when used in a validation method, you need to reference it as it were plain, ex: { person: { age: 22 } } will be gotten with .get('person.age').

If the field was not found, undefined will be returned.

Type:
  • function

<static> validator :Object

Reference to the validator package.

Type:
  • Object