Problem/Motivation
Symfony validator is added to Drupal core, and it contains many constraints.
Supported Constraints of symfony
Symfony packages many of the most commonly-needed constraints:
Basic Constraints
These are the basic constraints: use them to assert very basic things about the value of properties or the return value of methods on your object.
NotBlank
Blank
NotNull
IsNull
IsTrue
IsFalse
Type
String Constraints
EmailExpressionSyntax
Length
Url
Regex
Hostname
Ip
Cidr
Json
Uuid
Ulid
UserPassword
NotCompromisedPassword
PasswordStrength
CssColor
NoSuspiciousCharacters
Comparison Constraints
EqualTo
NotEqualTo
IdenticalTo
NotIdenticalTo
LessThan
LessThanOrEqual
GreaterThan
GreaterThanOrEqual
Range
DivisibleBy
Unique
Number Constraints
Positive
PositiveOrZero
Negative
NegativeOrZero
Date Constraints
Date
DateTime
Time
Timezone
Choice Constraints
Choice
Language
Locale
Country
File Constraints
File
Image
Financial and other Number Constraints
Bic
CardScheme
Currency
Luhn
Iban
Isbn
Issn
Isin
Other Constraints
AtLeastOneOf
Sequentially
Compound
Callback
Expression
When
All
Valid
Cascade
Traverse
Collection
Count
UniqueEntity
EnableAutoMapping
DisableAutoMapping
Constraint which in Bold format is to be supported.
Comments
Comment #2
g089h515r806 commentedSome of already supported in previous version alpha1.
Comment #3
g089h515r806 commentedComment #4
g089h515r806 commentedComment #5
g089h515r806 commentedComment #6
g089h515r806 commentedComment #7
g089h515r806 commentedmark this as fixed.
A lot symfony supported. some of them useless in Drupal, some too complex to use.
we can add them later if needed.