Skip to content

Enhancement: Use the same tables across all constraints #14359

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

Merged
merged 1 commit into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions reference/constraints/Currency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ Currency

Validates that a value is a valid `3-letter ISO 4217`_ currency name.

+----------------+---------------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+---------------------------------------------------------------------------+
| Options | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
+----------------+---------------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Currency` |
+----------------+---------------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\CurrencyValidator` |
+----------------+---------------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `groups`_
- `message`_
- `payload`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\Currency`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\CurrencyValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
24 changes: 11 additions & 13 deletions reference/constraints/EqualTo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@ To force that a value is *not* equal, see :doc:`/reference/constraints/NotEqualT
equal. Use :doc:`/reference/constraints/IdenticalTo` to compare with
``===``.

+----------------+-----------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+-----------------------------------------------------------------------+
| Options | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
| | - `propertyPath`_ |
| | - `value`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\EqualTo` |
+----------------+-----------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\EqualToValidator` |
+----------------+-----------------------------------------------------------------------+

========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `groups`_
- `message`_
- `payload`_
- `propertyPath`_
- `value`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\EqualTo`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\EqualToValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
23 changes: 10 additions & 13 deletions reference/constraints/GreaterThan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ force that a value is greater than or equal to another value, see
:doc:`/reference/constraints/GreaterThanOrEqual`. To force a value is less
than another value, see :doc:`/reference/constraints/LessThan`.

+----------------+---------------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+---------------------------------------------------------------------------+
| Options | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
| | - `propertyPath`_ |
| | - `value`_ |
+----------------+---------------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThan` |
+----------------+---------------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanValidator` |
+----------------+---------------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `groups`_
- `message`_
- `payload`_
- `propertyPath`_
- `value`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThan`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
23 changes: 10 additions & 13 deletions reference/constraints/GreaterThanOrEqual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ Validates that a value is greater than or equal to another value, defined in
the options. To force that a value is greater than another value, see
:doc:`/reference/constraints/GreaterThan`.

+----------------+----------------------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+----------------------------------------------------------------------------------+
| Options | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
| | - `propertyPath`_ |
| | - `value`_ |
+----------------+----------------------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqual` |
+----------------+----------------------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqualValidator` |
+----------------+----------------------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `groups`_
- `message`_
- `payload`_
- `propertyPath`_
- `value`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqual`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\GreaterThanOrEqualValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
19 changes: 8 additions & 11 deletions reference/constraints/Iban.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@ format of an `International Bank Account Number (IBAN)`_. IBAN is an
internationally agreed means of identifying bank accounts across national
borders with a reduced risk of propagating transcription errors.

+----------------+-----------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+-----------------------------------------------------------------------+
| Options | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Iban` |
+----------------+-----------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IbanValidator` |
+----------------+-----------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `groups`_
- `message`_
- `payload`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\Iban`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IbanValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
23 changes: 10 additions & 13 deletions reference/constraints/IdenticalTo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ To force that a value is *not* identical, see
considered equal. Use :doc:`/reference/constraints/EqualTo` to compare
with ``==``.

+----------------+--------------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+--------------------------------------------------------------------------+
| Options | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
| | - `propertyPath`_ |
| | - `value`_ |
+----------------+--------------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalTo` |
+----------------+--------------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalToValidator`|
+----------------+--------------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `groups`_
- `message`_
- `payload`_
- `propertyPath`_
- `value`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalTo`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IdenticalToValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
27 changes: 12 additions & 15 deletions reference/constraints/Isbn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@ Isbn
This constraint validates that an `International Standard Book Number (ISBN)`_
is either a valid ISBN-10 or a valid ISBN-13.

+----------------+----------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+----------------------------------------------------------------------+
| Options | - `bothIsbnMessage`_ |
| | - `groups`_ |
| | - `isbn10Message`_ |
| | - `isbn13Message`_ |
| | - `message`_ |
| | - `payload`_ |
| | - `type`_ |
+----------------+----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Isbn` |
+----------------+----------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IsbnValidator` |
+----------------+----------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `bothIsbnMessage`_
- `groups`_
- `isbn10Message`_
- `isbn13Message`_
- `message`_
- `payload`_
- `type`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\Isbn`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IsbnValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
23 changes: 10 additions & 13 deletions reference/constraints/Issn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ Issn
Validates that a value is a valid
`International Standard Serial Number (ISSN)`_.

+----------------+-----------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+-----------------------------------------------------------------------+
| Options | - `caseSensitive`_ |
| | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
| | - `requireHyphen`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Issn` |
+----------------+-----------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\IssnValidator` |
+----------------+-----------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `caseSensitive`_
- `groups`_
- `message`_
- `payload`_
- `requireHyphen`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\Issn`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\IssnValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
17 changes: 7 additions & 10 deletions reference/constraints/Json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ Json

Validates that a value has valid `JSON`_ syntax.

+----------------+-----------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+-----------------------------------------------------------------------+
| Options | - `message`_ |
| | - `payload`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Json` |
+----------------+-----------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\JsonValidator` |
+----------------+-----------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `message`_
- `payload`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\Json`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\JsonValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
23 changes: 10 additions & 13 deletions reference/constraints/LessThan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ force that a value is less than or equal to another value, see
:doc:`/reference/constraints/LessThanOrEqual`. To force a value is greater
than another value, see :doc:`/reference/constraints/GreaterThan`.

+----------------+------------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+------------------------------------------------------------------------+
| Options | - `groups`_ |
| | - `message`_ |
| | - `payload`_ |
| | - `propertyPath`_ |
| | - `value`_ |
+----------------+------------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\LessThan` |
+----------------+------------------------------------------------------------------------+
| Validator | :class:`Symfony\\Component\\Validator\\Constraints\\LessThanValidator` |
+----------------+------------------------------------------------------------------------+
========== ===================================================================
Applies to :ref:`property or method <validation-property-target>`
Options - `groups`_
- `message`_
- `payload`_
- `propertyPath`_
- `value`_
Class :class:`Symfony\\Component\\Validator\\Constraints\\LessThan`
Validator :class:`Symfony\\Component\\Validator\\Constraints\\LessThanValidator`
========== ===================================================================

Basic Usage
-----------
Expand Down
Loading