Skip to content

docs(Model.init): set correct path for validate option.#10237

Merged
sushantdhiman merged 1 commit into
sequelize:masterfrom
Faris-Nasybulin:master
Dec 7, 2018
Merged

docs(Model.init): set correct path for validate option.#10237
sushantdhiman merged 1 commit into
sequelize:masterfrom
Faris-Nasybulin:master

Conversation

@Faris-Nasybulin

@Faris-Nasybulin Faris-Nasybulin commented Dec 6, 2018

Copy link
Copy Markdown
Contributor

docs(Model.init): set correct path for validate option.

@sushantdhiman

Copy link
Copy Markdown
Contributor

Are you sure about this! I dont remember attribute.column.validate to be a thing, but attribute.validate is pretty important? You might have got this idea from other attributes.column.* thingies?

@Faris-Nasybulin

Copy link
Copy Markdown
Contributor Author

In documentation attributes is first argument of Model.init method. attributes.column is property of attributes argument, where column is a attribute name. Finally, the attributes.column.validate is the object for the validation of the attribute.
What's wrong with it?

@sushantdhiman sushantdhiman merged commit 2c6b6e5 into sequelize:master Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants