Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Dec 7, 2018

Conversation

farisn
Copy link
Contributor

@farisn farisn commented Dec 6, 2018

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

@sushantdhiman
Copy link
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?

@farisn
Copy link
Contributor Author

farisn commented Dec 6, 2018

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.

None yet

2 participants