Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 1b334b3c
authored
Apr 20, 2017
by
Connor Clark
Committed by
Sushant
Apr 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo in validations documentation (#7546)
1 parent
08054924
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
docs/models-definition.md
docs/models-definition.md
View file @
1b334b3
...
@@ -385,7 +385,7 @@ var ValidateMe = sequelize.define('foo', {
...
@@ -385,7 +385,7 @@ var ValidateMe = sequelize.define('foo', {
isDate
:
true
,
// only allow date strings
isDate
:
true
,
// only allow date strings
isAfter
:
"2011-11-05"
,
// only allow date strings after a specific date
isAfter
:
"2011-11-05"
,
// only allow date strings after a specific date
isBefore
:
"2011-11-05"
,
// only allow date strings before a specific date
isBefore
:
"2011-11-05"
,
// only allow date strings before a specific date
max
:
23
,
// only allow values
max
:
23
,
// only allow values
<= 23
min
:
23
,
// only allow values >= 23
min
:
23
,
// only allow values >= 23
isCreditCard
:
true
,
// check for valid credit card numbers
isCreditCard
:
true
,
// check for valid credit card numbers
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment