diff options
author | Julian Berman <Julian@GrayVines.com> | 2013-05-21 09:37:01 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2013-05-21 09:39:40 -0400 |
commit | 93467f114cb7013a8a623ac177834f9c13676e31 (patch) | |
tree | 5328215a96509a095f60df325d8d42f499a52aeb | |
parent | d6f99968a8532bf4518562309383360f3b170889 (diff) | |
download | jsonschema-93467f114cb7013a8a623ac177834f9c13676e31.tar.gz |
Update README and CHANGELOGv2.0.0
-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 |