diff options
-rw-r--r-- | CHANGELOG.rst | 3 | ||||
-rw-r--r-- | README.rst | 11 | ||||
-rw-r--r-- | jsonschema/validators.py | 1 |
3 files changed, 11 insertions, 4 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index dd7ea18..6408a7c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,8 @@ -v1.4.0 +v2.0.0 ------ * Added ``create`` and ``extend`` to ``jsonschema.validators`` +* Removed ``ValidatorMixin`` * Fixed array indices ref resolution (#95) * Fixed unknown scheme defragmenting and handling (#102) @@ -49,11 +49,18 @@ Features Release Notes ------------- -``v1.4.0`` adds a better interface for creating and extending validators in the +``v2.0.0`` adds a better interface for creating and extending validators in the form of ``jsonschema.validators.create`` and ``jsonschema.validators.extend``. The documentation is still a bit lacking in this area but it's getting there. See the tests in ``jsonschema.tests.test_validators`` and the source code if -you'd like to try it out now. +you'd like to try it out now. ``ValidatorMixin`` has been removed. + +Practically speaking, this affects validators that subclassed a built-in +validator and extended a validator function (presumably with an upcall via +``super``), as the correct way to do so is now to call +``TheValidator.VALIDATORS["extended_validator_fn"]`` directly in a new +validator function (and of course to use ``create``). Examples hopefully coming +soon if more clarification is needed. Patches welcome of course. It also fixes a number of issues with ref resolution, one for array indices (#95) and one for improper handling of unknown URI schemes (#102). diff --git a/jsonschema/validators.py b/jsonschema/validators.py index dcc500e..d119219 100644 --- a/jsonschema/validators.py +++ b/jsonschema/validators.py @@ -4,7 +4,6 @@ import collections import contextlib import json import numbers -import warnings try: import requests |