From 85739b63ec438f6aa50b6ec128115310997a00dc Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Mon, 20 May 2013 20:27:18 -0400 Subject: Add jsonschema.validators.extend --- docs/creating.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') 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 -- cgit v1.2.1