Update validations.js

Fix API doc per https://github.com/strongloop/loopback/issues/2472
This commit is contained in:
Rand McKinney 2016-06-29 16:13:44 -07:00 committed by GitHub
parent 6bc4441850
commit 45e14af4a9
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ Validatable.validatesExclusionOf = getConfigurator('exclusion');
* Validate format. Require a model to include a property that matches the given format.
*
* Require a model to include a property that matches the given format. Example:
* `User.validatesFormat('name', {with: /\w+/});`
* `User.validatesFormatOf('name', {with: /\w+/});`
*
* @param {String} propertyName Property name to validate.
* @options {Object} Options