* Validate the attributes of this instance according to validation rules set in the model definition. * * The promise fulfills if and only if validation successful; otherwise it rejects an Error instance containing { field name : [error msgs] } entries. * * @param {object} [options] Options
(options)
| 4291 | * @returns {Promise} |
| 4292 | */ |
| 4293 | async validate(options) { |
| 4294 | return new InstanceValidator(this, options).validate(); |
| 4295 | } |
| 4296 | |
| 4297 | /** |
| 4298 | * This is the same as calling `set` and then calling `save` but it only saves the |