diff options
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 |