You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validations
Validations are defined on you attributes when defining a model. It uses Anchor behind the scenes to run validations whenever you create or update a record.
attributes: {
name: {
type: 'string',
maxLength: 20,
minLength: 5
},
email: {
type: 'email',
required: true
}
}
Available validations are:
empty
required
notEmpty
undefined
string
alpha
numeric
alphanumeric
email
url
urlish
ip
ipv4
ipv6
creditcard
uuid
uuidv3
uuidv4
int
integer
number
finite
decimal
float
falsey
truthy
null
notNull
boolean
array
date
hexadecimal
hexColor
lowercase
uppercase
after
before
is
regex
not
notRegex
equals
contains
notContains
len
in
notIn
max
min
minLength
maxLength
The text was updated successfully, but these errors were encountered:
Validations
Validations are defined on you attributes when defining a model. It uses Anchor behind the scenes to run validations whenever you create or update a record.
attributes: {
name: {
type: 'string',
maxLength: 20,
minLength: 5
},
email: {
type: 'email',
required: true
}
}
Available validations are:
empty
required
notEmpty
undefined
string
alpha
numeric
alphanumeric
email
url
urlish
ip
ipv4
ipv6
creditcard
uuid
uuidv3
uuidv4
int
integer
number
finite
decimal
float
falsey
truthy
null
notNull
boolean
array
date
hexadecimal
hexColor
lowercase
uppercase
after
before
is
regex
not
notRegex
equals
contains
notContains
len
in
notIn
max
min
minLength
maxLength
The text was updated successfully, but these errors were encountered: