diff options
author | Julian Berman <Julian@GrayVines.com> | 2013-05-20 20:27:18 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2013-05-20 20:27:18 -0400 |
commit | 85739b63ec438f6aa50b6ec128115310997a00dc (patch) | |
tree | 0b797b3c539e9d873b5edede323a17ff8a270357 /docs/creating.rst | |
parent | 0a7fe815301dcc64abd22e567e0045ec6715d46b (diff) | |
download | jsonschema-85739b63ec438f6aa50b6ec128115310997a00dc.tar.gz |
Add jsonschema.validators.extend
Diffstat (limited to 'docs/creating.rst')
-rw-r--r-- | docs/creating.rst | 11 |
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 |