Back to Sequelize

ValidationErrorItem

static/v4/class/lib/errors/index.js~ValidationErrorItem.html

latest2.7 KB
Original Source

publicclass| source

ValidationErrorItem

Validation Error Item Instances of this class are included in the ValidationError.errors property.

Member Summary

| Public Members | | public |

instance: Model

The DAO instance that caused the validation error

| | | public |

message: String

An error message

| | | public |

path: String

The field that triggered the validation error

| | | public |

type: String

The type/origin of the validation error

| | | public |

validatorArgs: String

Parameters used with the BUILT-IN validator function, if applicable

| | | public |

validatorKey: String

A validation "key", used for identification

| | | public |

validatorName: String

Property name of the BUILT-IN validator function that caused the validation error (e.g.

| | | public |

value: String

The value that generated the error

| |

Public Members

publicinstance: Model source

The DAO instance that caused the validation error

publicmessage: String source

An error message

publicpath: String source

The field that triggered the validation error

publictype: String source

The type/origin of the validation error

publicvalidatorArgs: String source

Parameters used with the BUILT-IN validator function, if applicable

publicvalidatorKey: String source

A validation "key", used for identification

publicvalidatorName: String source

Property name of the BUILT-IN validator function that caused the validation error (e.g. "in" or "len"), if applicable

publicvalue: String source

The value that generated the error