Update validations.js
Fix API doc per https://github.com/strongloop/loopback/issues/2472
This commit is contained in:
parent
6bc4441850
commit
45e14af4a9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue