Skip to content

Commit 2210552

Browse files
committed
Release v1.2.0
1 parent 15c90c5 commit 2210552

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

README.rst

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,20 @@ Features
4949
Release Notes
5050
-------------
5151

52-
``v1.0.0`` is a new major release of ``jsonschema``.
52+
``v1.2.0`` adds a number of new attributes to provide information that is
53+
useful for programmatially inspecting draft4's ``anyOf``, ``oneOf`` and
54+
``allOf`` validators.
5355

54-
It includes two major new features: `support for the newly released draft 4 <https://python-jsonschema.readthedocs.org/en/latest/validate.html#jsonschema.Draft4Validator>`_
55-
of the specification (thanks to Chase Sterling) and
56-
`optional support for format
57-
<https://python-jsonschema.readthedocs.org/en/latest/validate.html#validating-formats>`_
58-
(thanks to Norman Hooper).
56+
See https://python-jsonschema.readthedocs.org/en/latest/errors.html for
57+
examples.
5958

60-
It also contains two major backwards incompatible changes: draft 4 is now the
61-
default for schemas without ``$schema`` specified, and ``ValidationError``\s
62-
now have ``path`` in sequential order.
59+
``ValidatorMixin`` also gained a ``descend`` method which is useful for
60+
implementing validation methods that recurse into an instance while maintaining
61+
the paths within the instance and schema. It isn't documented yet though
62+
(patches welcome.)
6363

64-
It also fixes a minor issue with ``long``\s not being recognized as
65-
``integer``\s and a number of issues with the support for ``$ref``.
66-
67-
Also, ``ValidatorMixin`` can be used to construct concrete validators for users
68-
who wish to create their own from scratch.
69-
70-
As always, see `the documentation <http://python-jsonschema.readthedocs.org>`_
71-
for details.
72-
73-
``v1.1.0`` fixes a bug whereby URIs were not canonicalized when stored and
74-
looked up (#70) and also allows for registering exceptions that can be accessed
75-
from ``ValidationError``\s when validating ``format`` properties (#77).
64+
There's also a fix for a minor issue where failing ref resolutions had poor
65+
error messages.
7666

7767

7868
Running the Test Suite

jsonschema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
except ImportError:
3434
requests = None
3535

36-
__version__ = "1.2.0-dev"
36+
__version__ = "1.2.0"
3737

3838
PY3 = sys.version_info[0] >= 3
3939

0 commit comments

Comments
 (0)