Add support for Symfony Constraints.

Created on 16 August 2023, 11 months ago
Updated 21 August 2023, 10 months ago

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.







Type

String Constraints

ExpressionSyntax

Url







UserPassword
NotCompromisedPassword
PasswordStrength

NoSuspiciousCharacters

Comparison Constraints











Number Constraints




Date Constraints




Timezone

Choice Constraints

Choice


File Constraints

File
Image

Financial and other Number Constraints








Other Constraints

AtLeastOneOf
Sequentially
Compound


When
All
Valid
Cascade
Traverse
Collection

UniqueEntity
EnableAutoMapping
DisableAutoMapping

Constraint which in Bold format is to be supported.

πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡³China g089h515r806

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024