Skip to content

Commit 2b38a28

Browse files
committed
add validation config reference section
1 parent 87365fa commit 2b38a28

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

reference/configuration/framework.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ Configuration
4848
* `translator`_
4949
* :ref:`enabled <translator.enabled>`
5050
* `fallback`_
51+
* `validation`_
52+
* `cache`_
53+
* `enable_annotations`_
54+
* `translation_domain`_
55+
* `strict_email`_
5156

5257
secret
5358
~~~~~~
@@ -517,6 +522,38 @@ This option is used when the translation key for the current locale wasn't found
517522

518523
For more details, see :doc:`/book/translation`.
519524

525+
validation
526+
~~~~~~~~~~
527+
528+
cache
529+
.....
530+
531+
**type**: ``string``
532+
533+
The implementation to be used to cache validation metadata.
534+
535+
enable_annotations
536+
..................
537+
538+
**type**: ``Boolean`` **default**: ``false``
539+
540+
If this option is enabled, validation constraints can be defined using annotations.
541+
542+
translation_domain
543+
..................
544+
545+
**type**: ``string`` **default**: ``validators``
546+
547+
The translation domain that is used to translation validation constraint
548+
error messages.
549+
550+
strict_email
551+
............
552+
553+
**type**: ``Boolean`` **default**: ``false``
554+
555+
If this option is enabled,
556+
520557
Full default Configuration
521558
--------------------------
522559

0 commit comments

Comments
 (0)