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.name = 'bad';
|
||||||
* user.isValid(); // false
|
* user.isValid(); // false
|
||||||
*
|
*
|
||||||
* @nocode
|
* @param {String} propertyName Property name to validate.
|
||||||
* @see helper/validateCustom
|
* @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');
|
Validatable.validate = getConfigurator('custom');
|
||||||
|
|
||||||
|
@ -200,9 +202,9 @@ Validatable.validate = getConfigurator('custom');
|
||||||
* isValid; // false
|
* isValid; // false
|
||||||
* })
|
* })
|
||||||
*```
|
*```
|
||||||
* @async
|
* @param {String} propertyName Property name to validate.
|
||||||
* @nocode
|
* @options {Object} Options See below
|
||||||
* @see helper/validateCustom
|
* @property {String} message Optional error message if property is not valid. Default error message: " is invalid".
|
||||||
*/
|
*/
|
||||||
Validatable.validateAsync = getConfigurator('custom', {async: true});
|
Validatable.validateAsync = getConfigurator('custom', {async: true});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue