Validation Error Item Instances of this class are included in the ValidationError.errors property.
| Public Constructor | ||
|---|---|---|
| public | constructor(message: string, type: string, path: string, value: string, inst: Object, validatorKey: Object, fnName: string, fnArgs: string) Creates new validation error item | |
| Public Members | ||
|---|---|---|
| public | The DAO instance that caused the validation error | |
| public | An error message | |
| public | The field that triggered the validation error | |
| public | The type/origin of the validation error | |
| public | Parameters used with the BUILT-IN validator function, if applicable | |
| public | A validation "key", used for identification | |
| public | Property name of the BUILT-IN validator function that caused the validation error (e.g. | |
| public | The value that generated the error | |
Creates new validation error item
| Name | Type | Attribute | Description |
|---|---|---|---|
| message | string |
An error message | |
| type | string |
The type/origin of the validation error | |
| path | string |
The field that triggered the validation error | |
| value | string |
The value that generated the error | |
| inst | Object |
|
the DAO instance that caused the validation error |
| validatorKey | Object |
|
a validation "key", used for identification |
| fnName | string |
|
property name of the BUILT-IN validator function that caused the validation error (e.g. "in" or "len"), if applicable |
| fnArgs | string |
|
parameters used with the BUILT-IN validator function, if applicable |
Parameters used with the BUILT-IN validator function, if applicable
Copyright © 2014–present Sequelize contributors
Licensed under the MIT License.
https://sequelize.org/master/class/lib/errors/validation-error.js~ValidationErrorItem.html