diff --git a/lib/validations.js b/lib/validations.js index c8221568..3455edf7 100644 --- a/lib/validations.js +++ b/lib/validations.js @@ -131,7 +131,7 @@ Validatable.validatesNumericalityOf = getConfigurator('numericality'); * @param {String} propertyName Property name to validate. * @options {Object} Options See below * @property {Array} inArray Property must match one of the values in the array to be valid. - * @property {String} message Optional error message if property is not valid. + * @property {String} message Optional error message if property is not valid. * Default error message: "is not included in the list". * @property {Boolean} allowNull Whether null values are allowed. */ @@ -146,7 +146,7 @@ Validatable.validatesInclusionOf = getConfigurator('inclusion'); * @options {Object} Options * @property {Array} inArray Property must match one of the values in the array to be valid. * @property {String} message Optional error message if property is not valid. Default error message: "is reserved". - * @property {Boolean} allowNull Whether null values are allowed. + * @property {Boolean} allowNull Whether null values are allowed. */ Validatable.validatesExclusionOf = getConfigurator('exclusion'); @@ -160,7 +160,7 @@ Validatable.validatesExclusionOf = getConfigurator('exclusion'); * @options {Object} Options * @property {RegExp} with Regular expression to validate format. * @property {String} message Optional error message if property is not valid. Default error message: " is invalid". - * @property {Boolean} allowNull Whether null values are allowed. + * @property {Boolean} allowNull Whether null values are allowed. */ Validatable.validatesFormatOf = getConfigurator('format'); @@ -214,7 +214,7 @@ Validatable.validate = getConfigurator('custom'); * @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". - * @property {Boolean} allowNull Whether null values are allowed. + * @property {Boolean} allowNull Whether null values are allowed. */ Validatable.validateAsync = getConfigurator('custom', {async: true}); @@ -239,7 +239,7 @@ Validatable.validateAsync = getConfigurator('custom', {async: true}); * @property {RegExp} with Regular expression to validate format. * @property {Array.} scopedTo List of properties defining the scope. * @property {String} message Optional error message if property is not valid. Default error message: "is not unique". - * @property {Boolean} allowNull Whether null values are allowed. + * @property {Boolean} allowNull Whether null values are allowed. */ Validatable.validatesUniquenessOf = getConfigurator('uniqueness', {async: true});