From b8b43a4544a529814ae0d7f5b5e065b974cc0b5f Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Tue, 19 Jun 2012 10:13:27 -0400 Subject: Lets wrestle with reSt shall we. --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.1