summaryrefslogtreecommitdiff
path: root/docs/creating.rst
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2013-02-16 23:59:03 -0500
committerJulian Berman <Julian@GrayVines.com>2013-02-16 23:59:03 -0500
commit0fb2bc6f96c4be1d0b46ce464a2b6a818f73d4dc (patch)
treed07e6a6f80d22ca18b325169ea804d0dd4c6d38c /docs/creating.rst
parent701b2ecfcd579e65bddbf51e2346c2fb212e46f0 (diff)
downloadjsonschema-0fb2bc6f96c4be1d0b46ce464a2b6a818f73d4dc.tar.gz
Remove ValidationError too.
Diffstat (limited to 'docs/creating.rst')
-rw-r--r--docs/creating.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/creating.rst b/docs/creating.rst
index e5ded7f..ba1d417 100644
--- a/docs/creating.rst
+++ b/docs/creating.rst
@@ -7,3 +7,11 @@ Creating or Extending Validators
.. currentmodule:: jsonschema
.. autofunction:: validates
+
+
+Creating Validation Errors
+--------------------------
+
+Any validating function that recurses into an instance (e.g. ``properties`` or
+``items``) must append to the :exc:`ValidationError.path` attribute of the
+error in order to properly maintain where in the instance the error occurred.