Skip to content

fix(Caution): Validator folder for YAML or XML format #9870

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 2 commits into from
Closed
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
5 changes: 3 additions & 2 deletions validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ So far, this is just an ordinary class that serves some purpose inside your
application. The goal of validation is to tell you if the data
of an object is valid. For this to work, you'll configure a list of rules
(called :ref:`constraints <validation-constraints>`) that the object must
follow in order to be valid. These rules can be specified via a number of
different formats (YAML, XML, annotations, or PHP).
follow in order to be valid. These rules are usually defined using PHP code or
annotations but they can also be defined as a ``validation.yaml`` or
``validation.xml`` file inside the ``config/validator/`` directory:

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