summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian+git@GrayVines.com>2012-06-19 10:13:27 -0400
committerJulian Berman <Julian+git@GrayVines.com>2012-06-19 10:13:27 -0400
commitb8b43a4544a529814ae0d7f5b5e065b974cc0b5f (patch)
tree4ba91e7cf3f31549321e772bada093c92c5217c4
parent6afe17703e9c6834ab6e23c3ca4002ea8a59b6ee (diff)
downloadjsonschema-0.4.tar.gz
Lets wrestle with reSt shall we.v0.4
-rw-r--r--README.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index f9f4cf6..558718b 100644
--- a/README.rst
+++ b/README.rst
@@ -39,6 +39,8 @@ Features
* Lazy validation that can iteratively report *all* validation errors.
+::
+
>>> from jsonschema import Validator
>>> schema = {
... "type" : "array",
@@ -55,6 +57,8 @@ Features
* Programmatic querying of which properties or items failed validation.
+::
+
>>> from jsonschema import ErrorTree, Validator
>>> schema = {
... "type" : "array",
@@ -104,6 +108,7 @@ Release Notes
In order to make this happen (and also to clean things up a bit), a number
of deprecations are necessary:
+
* ``stop_on_error`` is deprecated in ``Validator.__init__``. Use
``Validator.iter_errors()`` instead.
* ``number_types`` and ``string_types`` are deprecated there as well.