Skip to content

Commit f9bae24

Browse files
committed
minor #9870 fix(Caution): Validator folder for YAML or XML format (Guikingone, javiereguiluz)
This PR was submitted for the 4.1 branch but it was merged into the 4.0 branch instead (closes #9870). Discussion ---------- fix(Caution): Validator folder for YAML or XML format Hi, The validator waits for a `config/validator` folder structure if we use the "file" approach, this structure must be respected, it could be a great idea to informat that the structure is mandatory. Commits ------- 2f29f7a Reword bc83185 fix(Caution): Validator folder for YAML or XML format
2 parents cfb9084 + 2f29f7a commit f9bae24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

validation.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ So far, this is just an ordinary class that serves some purpose inside your
4343
application. The goal of validation is to tell you if the data
4444
of an object is valid. For this to work, you'll configure a list of rules
4545
(called :ref:`constraints <validation-constraints>`) that the object must
46-
follow in order to be valid. These rules can be specified via a number of
47-
different formats (YAML, XML, annotations, or PHP).
46+
follow in order to be valid. These rules are usually defined using PHP code or
47+
annotations but they can also be defined as a ``validation.yaml`` or
48+
``validation.xml`` file inside the ``config/validator/`` directory:
4849

4950
For example, to guarantee that the ``$name`` property is not empty, add the
5051
following:

0 commit comments

Comments
 (0)