Skip to content

Commit ccda9b2

Browse files
committed
[Validator] BicValidator add strict mode to validate bics in strict mode
1 parent 350dfbe commit ccda9b2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

reference/constraints/Bic.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,20 @@ Parameter Description
121121

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

124+
``mode``
125+
~~~~~~~~
126+
127+
**type**: ``string`` **default**: ``strict``
128+
129+
The mode in which the BIC is validated can be defined with this option. Valid values are:
130+
131+
* ``strict`` uses the input BIC and validates it without modification.
132+
* ``case-insensitive`` converts the input value to uppercase before validating the BIC.
133+
134+
.. tip::
135+
136+
The possible values of this option are also defined as PHP constants of
137+
:class:`Symfony\\Component\\Validator\\Constraints\\BIC`
138+
(e.g. ``BIC::VALIDATION_MODE_CASE_INSENSITIVE``).
139+
124140
.. _`Business Identifier Code (BIC)`: https://en.wikipedia.org/wiki/Business_Identifier_Code

0 commit comments

Comments
 (0)