Fix problems in annotations that prvented validateAsync and validate functions from appearing in API docs.
This commit is contained in:
parent
4bbbf7906e
commit
e81415ceda
|
@ -170,8 +170,10 @@ Validatable.validatesFormatOf = getConfigurator('format');
|
|||
* user.name = 'bad';
|
||||
* user.isValid(); // false
|
||||
*
|
||||
* @nocode
|
||||
* @see helper/validateCustom
|
||||
* @param {String} propertyName Property name to validate.
|
||||
* @param {Function} validatorFn Custom validation function.
|
||||
* @options {Object} Options See below.
|
||||
* @property {String} message Optional error message if property is not valid. Default error message: " is invalid".
|
||||
*/
|
||||
Validatable.validate = getConfigurator('custom');
|
||||
|
||||
|
@ -200,9 +202,9 @@ Validatable.validate = getConfigurator('custom');
|
|||
* isValid; // false
|
||||
* })
|
||||
*```
|
||||
* @async
|
||||
* @nocode
|
||||
* @see helper/validateCustom
|
||||
* @param {String} propertyName Property name to validate.
|
||||
* @options {Object} Options See below
|
||||
* @property {String} message Optional error message if property is not valid. Default error message: " is invalid".
|
||||
*/
|
||||
Validatable.validateAsync = getConfigurator('custom', {async: true});
|
||||
|
||||
|
|
Loading…
Reference in New Issue