Skip to content

[Validator] Document allowLowerCase allowSpaces options #11000

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

Closed
wants to merge 1 commit into from
Closed
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
18 changes: 18 additions & 0 deletions reference/constraints/Bic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ check that the BIC is associated with a given IBAN.
| | - `iban`_ |
| | - `ibanMessage`_ |
| | - `ibanPropertyPath`_ |
| | - `allowLowerCase`_ |
| | - `allowSpaces`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Bic` |
+----------------+-----------------------------------------------------------------------+
Expand Down Expand Up @@ -131,4 +133,20 @@ For example, if you want to compare the ``$bic`` property of some object
with regard to the ``$iban`` property of the same object, use
``propertyPath="iban"`` in the comparison constraint of ``$bic``.

allowLowerCase
~~~~~~~~~~~~~~

**type**: ``boolean`` **default**: ``false``

If this option is set to ``false`` and value contains a lowercase letter, a validation
error will be returned. If set to ``true``, lowercase letters are allowed.

allowSpaces
~~~~~~~~~~~

**type**: ``boolean`` **default**: ``true``

If this option is set to ``false`` and value contains a space, a validation
error will be returned.

.. _`Business Identifier Code (BIC)`: https://en.wikipedia.org/wiki/Business_Identifier_Code
18 changes: 18 additions & 0 deletions reference/constraints/Iban.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ borders with a reduced risk of propagating transcription errors.
+----------------+-----------------------------------------------------------------------+
| Options | - `message`_ |
| | - `payload`_ |
| | - `allowLowerCase`_ |
| | - `allowSpaces`_ |
+----------------+-----------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Iban` |
+----------------+-----------------------------------------------------------------------+
Expand Down Expand Up @@ -110,6 +112,22 @@ You can use the following parameters in this message:
| ``{{ value }}`` | The current (invalid) value |
+-----------------+-----------------------------+

allowLowerCase
~~~~~~~~~~~~~~

**type**: ``boolean`` **default**: ``true``

If this option is set to ``false`` and value contains a lowercase letter, a validation
error will be returned.

allowSpaces
~~~~~~~~~~~

**type**: ``boolean`` **default**: ``true``

If this option is set to ``false`` and value contains a space, a validation
error will be returned.

.. include:: /reference/constraints/_payload-option.rst.inc

.. _`International Bank Account Number (IBAN)`: https://en.wikipedia.org/wiki/International_Bank_Account_Number
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy