summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2013-05-20 20:27:18 -0400
committerJulian Berman <Julian@GrayVines.com>2013-05-20 20:27:18 -0400
commit85739b63ec438f6aa50b6ec128115310997a00dc (patch)
tree0b797b3c539e9d873b5edede323a17ff8a270357 /docs
parent0a7fe815301dcc64abd22e567e0045ec6715d46b (diff)
downloadjsonschema-85739b63ec438f6aa50b6ec128115310997a00dc.tar.gz
Add jsonschema.validators.extend
Diffstat (limited to 'docs')
-rw-r--r--docs/creating.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/creating.rst b/docs/creating.rst
index 1b67011..6467756 100644
--- a/docs/creating.rst
+++ b/docs/creating.rst
@@ -25,6 +25,17 @@ Creating or Extending Validators
can still have their types customized on a per-instance basis.
:returns: an :class:`jsonschema.IValidator`
+.. autofunction:: extend
+
+ Create a new validator that extends an existing validator.
+
+ :argument :class:`jsonschema.IValidator` validator: an existing validator
+ :argument dict validators: a set of new validators to add to the new
+ validator. Any validators with the same name as an existing one will
+ (silently) replace the old validator entirely.
+ :argument str version: a version for the new validator
+ :returns: an :class:`jsonschema.IValidator`
+
.. autofunction:: validates