diff --git a/book/validation.rst b/book/validation.rst index 1bbfe31fb72..a9e622f546e 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -462,6 +462,9 @@ options can be specified in this way. This is purely meant to make the configuration of the most common option of a constraint shorter and quicker. +Every constraint has an extra option, ``code``, which allows you to specify an error +code on a per-use basis. + If you're ever unsure of how to specify an option, either check the API documentation for the constraint or play it safe by always passing in an array of options (the first method shown above).