Hello community,

here is the log from the commit of package python-jsonschema for 
openSUSE:Factory checked in at 2013-11-04 16:19:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jsonschema (Old)
 and      /work/SRC/openSUSE:Factory/.python-jsonschema.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jsonschema"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonschema/python-jsonschema.changes      
2013-06-19 17:01:45.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-jsonschema.new/python-jsonschema.changes 
2013-11-04 16:19:51.000000000 +0100
@@ -1,0 +2,10 @@
+Mon Oct 21 13:30:13 UTC 2013 - [email protected]
+
+- update to 2.2.0:
+  * Compile the host name regex (#127)
+  * Allow arbitrary objects to be types (#129)
+  * Support RFC 3339 datetimes in conformance with the spec
+  * Fixed error paths for additionalItems + items (#122)
+  * Fixed wording for min / maxProperties (#117)
+
+-------------------------------------------------------------------

Old:
----
  jsonschema-2.0.0.tar.gz

New:
----
  jsonschema-2.2.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jsonschema.spec ++++++
--- /var/tmp/diff_new_pack.3hHtj2/_old  2013-11-04 16:19:51.000000000 +0100
+++ /var/tmp/diff_new_pack.3hHtj2/_new  2013-11-04 16:19:51.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-jsonschema
-Version:        2.0.0
+Version:        2.2.0
 Release:        0
 Summary:        An implementation of JSON-Schema validation for Python
 License:        MIT

++++++ jsonschema-2.0.0.tar.gz -> jsonschema-2.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/CHANGELOG.rst 
new/jsonschema-2.2.0/CHANGELOG.rst
--- old/jsonschema-2.0.0/CHANGELOG.rst  2013-05-21 15:36:50.000000000 +0200
+++ new/jsonschema-2.2.0/CHANGELOG.rst  2013-10-18 19:31:08.000000000 +0200
@@ -1,3 +1,17 @@
+v2.2.0
+------
+
+* Compile the host name regex (#127)
+* Allow arbitrary objects to be types (#129)
+
+v2.1.0
+------
+
+* Support RFC 3339 datetimes in conformance with the spec
+* Fixed error paths for additionalItems + items (#122)
+* Fixed wording for min / maxProperties (#117)
+
+
 v2.0.0
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/PKG-INFO 
new/jsonschema-2.2.0/PKG-INFO
--- old/jsonschema-2.0.0/PKG-INFO       2013-05-21 15:41:34.000000000 +0200
+++ new/jsonschema-2.2.0/PKG-INFO       2013-10-18 19:46:54.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: jsonschema
-Version: 2.0.0
+Version: 2.2.0
 Summary: An implementation of JSON Schema validation for Python
 Home-page: http://github.com/Julian/jsonschema
 Author: Julian Berman
@@ -57,21 +57,8 @@
         Release Notes
         -------------
         
-        ``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. ``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).
+        ``v2.2.0`` contains a minor speedup for the ``host-name`` format and a 
small
+        change in draft 3's allowed types.
         
         
         Running the Test Suite
@@ -95,7 +82,8 @@
         Community
         ---------
         
-        There's a `mailing list 
<https://groups.google.com/forum/#!forum/jsonschema>`_ for this implementation 
on Google Groups.
+        There's a `mailing list 
<https://groups.google.com/forum/#!forum/jsonschema>`_
+        for this implementation on Google Groups.
         
         Please join, and feel free to send questions there.
         
@@ -113,6 +101,10 @@
         You can also generally find me on Freenode (nick: ``tos9``) in various
         channels, including ``#python``.
         
+        If you feel overwhelmingly grateful, you can woo me with beer money on
+        `Gittip <https://www.gittip.com/Julian/>`_ or via Google Wallet with 
the email
+        in my GitHub profile.
+        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Intended Audience :: Developers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/README.rst 
new/jsonschema-2.2.0/README.rst
--- old/jsonschema-2.0.0/README.rst     2013-05-21 15:36:23.000000000 +0200
+++ new/jsonschema-2.2.0/README.rst     2013-10-18 19:32:09.000000000 +0200
@@ -49,21 +49,8 @@
 Release Notes
 -------------
 
-``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. ``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).
+``v2.2.0`` contains a minor speedup for the ``host-name`` format and a small
+change in draft 3's allowed types.
 
 
 Running the Test Suite
@@ -87,7 +74,8 @@
 Community
 ---------
 
-There's a `mailing list <https://groups.google.com/forum/#!forum/jsonschema>`_ 
for this implementation on Google Groups.
+There's a `mailing list <https://groups.google.com/forum/#!forum/jsonschema>`_
+for this implementation on Google Groups.
 
 Please join, and feel free to send questions there.
 
@@ -104,3 +92,7 @@
 
 You can also generally find me on Freenode (nick: ``tos9``) in various
 channels, including ``#python``.
+
+If you feel overwhelmingly grateful, you can woo me with beer money on
+`Gittip <https://www.gittip.com/Julian/>`_ or via Google Wallet with the email
+in my GitHub profile.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/json/README.md 
new/jsonschema-2.2.0/json/README.md
--- old/jsonschema-2.0.0/json/README.md 2013-05-21 00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/json/README.md 2013-09-25 03:50:22.000000000 +0200
@@ -52,9 +52,8 @@
 Coverage
 --------
 
-Currently, draft 3 should have essentially full coverage for the core schema.
-
-The beginnings of draft 4 are underway.
+Draft 3 and 4 should have full coverage. If you see anything missing or think
+there is a useful test missing, please send a pull request or open an issue.
 
 Who Uses the Test Suite
 -----------------------
@@ -67,7 +66,11 @@
   * [direct-schema (javascript)](https://github.com/IreneKnapp/direct-schema)
   * [jsonschema (javascript)](https://github.com/tdegrunt/jsonschema)
   * [JaySchema (javascript)](https://github.com/natesilva/jayschema)
+  * [z-schema (javascript)](https://github.com/zaggino/z-schema)
   * [jesse (Erlang)](https://github.com/klarna/jesse)
+  * [json-schema (PHP)](https://github.com/justinrainbow/json-schema)
+  * [gojsonschema (Go)](https://github.com/sigu-399/gojsonschema) 
+  * [json_schema (Dart)](https://github.com/patefacio/json_schema) 
 
 If you use it as well, please fork and send a pull request adding yourself to
 the list :).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/json/bin/jsonschema_suite 
new/jsonschema-2.2.0/json/bin/jsonschema_suite
--- old/jsonschema-2.0.0/json/bin/jsonschema_suite      2013-05-21 
00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/json/bin/jsonschema_suite      2013-09-25 
03:50:22.000000000 +0200
@@ -32,6 +32,10 @@
     import jsonschema
 except ImportError:
     jsonschema = None
+else:
+    validators = getattr(
+        jsonschema.validators, "validators", jsonschema.validators
+    )
 
 
 ROOT_DIR = os.path.join(
@@ -138,8 +142,8 @@
     @unittest.skipIf(jsonschema is None, "Validation library not present!")
     def test_all_schemas_are_valid(self):
         for schema in os.listdir(SUITE_ROOT_DIR):
-            schema_validator = jsonschema.validators.get(schema)
-            if schema_validator:
+            schema_validator = validators.get(schema)
+            if schema_validator is not None:
                 test_files = collect(os.path.join(SUITE_ROOT_DIR, schema))
                 for case in cases(test_files):
                     try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonschema-2.0.0/json/tests/draft3/additionalProperties.json 
new/jsonschema-2.2.0/json/tests/draft3/additionalProperties.json
--- old/jsonschema-2.0.0/json/tests/draft3/additionalProperties.json    
2013-05-21 00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/json/tests/draft3/additionalProperties.json    
2013-09-25 03:50:22.000000000 +0200
@@ -4,6 +4,7 @@
             "additionalProperties being false does not allow other properties",
         "schema": {
             "properties": {"foo": {}, "bar": {}},
+            "patternProperties": { "^v": {} },
             "additionalProperties": false
         },
         "tests": [
@@ -21,6 +22,11 @@
                 "description": "ignores non-objects",
                 "data": [1, 2, 3],
                 "valid": true
+            },
+            {
+                "description": "patternProperties are not additional 
properties",
+                "data": {"foo":1, "vroom": 2},
+                "valid": true
             }
         ]
     },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonschema-2.0.0/json/tests/draft3/optional/format.json 
new/jsonschema-2.2.0/json/tests/draft3/optional/format.json
--- old/jsonschema-2.0.0/json/tests/draft3/optional/format.json 2013-05-21 
00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/json/tests/draft3/optional/format.json 2013-09-25 
03:50:22.000000000 +0200
@@ -28,6 +28,11 @@
                 "description": "an invalid date-time string",
                 "data": "06/19/1963 08:30:06 PST",
                 "valid": false
+            },
+            {
+                "description": "only RFC3339 not all of ISO 8601 are valid",
+                "data": "2013-350T01:01:01",
+                "valid": false
             }
         ]
     },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonschema-2.0.0/json/tests/draft4/additionalProperties.json 
new/jsonschema-2.2.0/json/tests/draft4/additionalProperties.json
--- old/jsonschema-2.0.0/json/tests/draft4/additionalProperties.json    
2013-05-21 00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/json/tests/draft4/additionalProperties.json    
2013-09-25 03:50:22.000000000 +0200
@@ -4,6 +4,7 @@
             "additionalProperties being false does not allow other properties",
         "schema": {
             "properties": {"foo": {}, "bar": {}},
+            "patternProperties": { "^v": {} },
             "additionalProperties": false
         },
         "tests": [
@@ -21,6 +22,11 @@
                 "description": "ignores non-objects",
                 "data": [1, 2, 3],
                 "valid": true
+            },
+            {
+                "description": "patternProperties are not additional 
properties",
+                "data": {"foo":1, "vroom": 2},
+                "valid": true
             }
         ]
     },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonschema-2.0.0/json/tests/draft4/optional/format.json 
new/jsonschema-2.2.0/json/tests/draft4/optional/format.json
--- old/jsonschema-2.0.0/json/tests/draft4/optional/format.json 2013-05-21 
00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/json/tests/draft4/optional/format.json 2013-09-25 
03:50:22.000000000 +0200
@@ -12,6 +12,11 @@
                 "description": "an invalid date-time string",
                 "data": "06/19/1963 08:30:06 PST",
                 "valid": false
+            },
+            {
+                "description": "only RFC3339 not all of ISO 8601 are valid",
+                "data": "2013-350T01:01:01",
+                "valid": false
             }
         ]
     },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/jsonschema/__init__.py 
new/jsonschema-2.2.0/jsonschema/__init__.py
--- old/jsonschema-2.0.0/jsonschema/__init__.py 2013-05-21 15:32:14.000000000 
+0200
+++ new/jsonschema-2.2.0/jsonschema/__init__.py 2013-10-18 19:32:17.000000000 
+0200
@@ -20,7 +20,7 @@
 )
 
 
-__version__ = "2.0.0"
+__version__ = "2.2.0"
 
 
 # flake8: noqa
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/jsonschema/_format.py 
new/jsonschema-2.2.0/jsonschema/_format.py
--- old/jsonschema-2.0.0/jsonschema/_format.py  2013-05-21 00:47:55.000000000 
+0200
+++ new/jsonschema-2.2.0/jsonschema/_format.py  2013-10-16 02:00:42.000000000 
+0200
@@ -64,17 +64,19 @@
 
         """
 
-        if format in self.checkers:
-            func, raises = self.checkers[format]
-            result, cause = None, None
-            try:
-                result = func(instance)
-            except raises as e:
-                cause = e
-            if not result:
-                raise FormatError(
-                    "%r is not a %r" % (instance, format), cause=cause,
-                )
+        if format not in self.checkers:
+            return
+
+        func, raises = self.checkers[format]
+        result, cause = None, None
+        try:
+            result = func(instance)
+        except raises as e:
+            cause = e
+        if not result:
+            raise FormatError(
+                "%r is not a %r" % (instance, format), cause=cause,
+            )
 
     def conforms(self, instance, format):
         """
@@ -129,10 +131,11 @@
         return socket.inet_pton(socket.AF_INET6, instance)
 
 
+_host_name_re = re.compile(r"^[A-Za-z0-9][A-Za-z0-9\.\-]{1,255}$")
+
 @_checks_drafts(draft3="host-name", draft4="hostname")
 def is_host_name(instance):
-    pattern = "^[A-Za-z0-9][A-Za-z0-9\.\-]{1,255}$"
-    if not re.match(pattern, instance):
+    if not _host_name_re.match(instance):
         return False
     components = instance.split(".")
     for component in components:
@@ -152,12 +155,17 @@
 
 
 try:
-    import isodate
+    import strict_rfc3339
 except ImportError:
-    pass
+    try:
+        import isodate
+    except ImportError:
+        pass
+    else:
+        _err = (ValueError, isodate.ISO8601Error)
+        _checks_drafts("date-time", raises=_err)(isodate.parse_datetime)
 else:
-    _err = (ValueError, isodate.ISO8601Error)
-    _checks_drafts("date-time", raises=_err)(isodate.parse_datetime)
+        _checks_drafts("date-time")(strict_rfc3339.validate_rfc3339)
 
 
 _checks_drafts("regex", raises=re.error)(re.compile)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/jsonschema/_validators.py 
new/jsonschema-2.2.0/jsonschema/_validators.py
--- old/jsonschema-2.0.0/jsonschema/_validators.py      2013-05-21 
00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/jsonschema/_validators.py      2013-10-18 
19:28:55.000000000 +0200
@@ -59,8 +59,9 @@
     ):
         return
 
+    len_items = len(schema.get("items", []))
     if validator.is_type(aI, "object"):
-        for index, item in enumerate(instance[len(schema.get("items", [])):]):
+        for index, item in enumerate(instance[len_items:], start=len_items):
             for error in validator.descend(item, aI, path=index):
                 yield error
     elif not aI and len(instance) > len(schema.get("items", [])):
@@ -214,7 +215,7 @@
             if not errors:
                 return
             all_errors.extend(errors)
-        elif validator.is_type(type, "string"):
+        else:
             if validator.is_type(instance, type):
                 return
     else:
@@ -299,14 +300,16 @@
 
 def minProperties_draft4(validator, mP, instance, schema):
     if validator.is_type(instance, "object") and len(instance) < mP:
-        yield ValidationError("%r is too short" % (instance,))
+        yield ValidationError(
+            "%r does not have enough properties" % (instance,)
+        )
 
 
 def maxProperties_draft4(validator, mP, instance, schema):
     if not validator.is_type(instance, "object"):
         return
     if validator.is_type(instance, "object") and len(instance) > mP:
-        yield ValidationError("%r is too short" % (instance,))
+        yield ValidationError("%r has too many properties" % (instance,))
 
 
 def allOf_draft4(validator, allOf, instance, schema):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsonschema-2.0.0/jsonschema/tests/test_jsonschema_test_suite.py 
new/jsonschema-2.2.0/jsonschema/tests/test_jsonschema_test_suite.py
--- old/jsonschema-2.0.0/jsonschema/tests/test_jsonschema_test_suite.py 
2013-05-21 00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/jsonschema/tests/test_jsonschema_test_suite.py 
2013-10-04 04:55:23.000000000 +0200
@@ -3,7 +3,7 @@
 
 Tests comprehensive correctness of each draft's validator.
 
-See https://github.com/jsonschema/JSON-Schema-Test-Suite for details.
+See https://github.com/json-schema/JSON-Schema-Test-Suite for details.
 
 """
 
@@ -139,13 +139,15 @@
 def missing_format(checker):
     def missing_format(case):
         format = case["schema"].get("format")
-        if format not in checker.checkers or (
-            # datetime.datetime is overzealous about typechecking in <=1.9
+        if format not in checker.checkers:
+            return "Format checker {0!r} not found.".format(format)
+        elif (
             format == "date-time" and
             pypy_version_info is not None and
             pypy_version_info[:2] <= (1, 9)
         ):
-            return "Format checker not found."
+            # datetime.datetime is overzealous about typechecking in <=1.9
+            return "datetime.datetime is broken on this version of PyPy."
     return missing_format
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/jsonschema/tests/test_validators.py 
new/jsonschema-2.2.0/jsonschema/tests/test_validators.py
--- old/jsonschema-2.0.0/jsonschema/tests/test_validators.py    2013-05-21 
15:33:15.000000000 +0200
+++ new/jsonschema-2.2.0/jsonschema/tests/test_validators.py    2013-10-18 
19:28:55.000000000 +0200
@@ -424,6 +424,23 @@
         self.assertEqual(list(e5.path), [1, "bar", "baz"])
         self.assertEqual(list(e6.path), [1, "foo"])
 
+        self.assertEqual(list(e1.schema_path), ["type"])
+        self.assertEqual(list(e2.schema_path), ["items", "type"])
+        self.assertEqual(
+            list(e3.schema_path), ["items", "properties", "bar", "type"],
+        )
+        self.assertEqual(
+            list(e4.schema_path),
+            ["items", "properties", "bar", "properties", "bar", "required"],
+        )
+        self.assertEqual(
+            list(e5.schema_path),
+            ["items", "properties", "bar", "properties", "baz", "minItems"]
+        )
+        self.assertEqual(
+            list(e6.schema_path), ["items", "properties", "foo", "enum"],
+        )
+
         self.assertEqual(e1.validator, "type")
         self.assertEqual(e2.validator, "type")
         self.assertEqual(e3.validator, "type")
@@ -483,6 +500,23 @@
         self.assertEqual(e1.validator, "type")
         self.assertEqual(e2.validator, "minimum")
 
+    def test_additionalItems_with_items(self):
+        instance = ["foo", "bar", 1]
+        schema = {
+            "items": [{}],
+            "additionalItems" : {"type": "integer", "minimum": 5}
+        }
+
+        validator = Draft3Validator(schema)
+        errors = validator.iter_errors(instance)
+        e1, e2 = sorted_errors(errors)
+
+        self.assertEqual(list(e1.path), [1])
+        self.assertEqual(list(e2.path), [2])
+
+        self.assertEqual(e1.validator, "type")
+        self.assertEqual(e2.validator, "minimum")
+
 
 class TestErrorTree(unittest.TestCase):
     def setUp(self):
@@ -621,6 +655,11 @@
         self.assertTrue(self.validator.is_type(True, "boolean"))
         self.assertTrue(self.validator.is_valid(True, {"type": "any"}))
 
+    def test_non_string_custom_types(self):
+        schema = {'type': [None]}
+        cls = self.validator_class(schema, types={None: type(None)})
+        cls.validate(None, schema)
+
 
 class TestDraft4Validator(ValidatorTestMixin, unittest.TestCase):
     validator_class = Draft4Validator
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/jsonschema/validators.py 
new/jsonschema-2.2.0/jsonschema/validators.py
--- old/jsonschema-2.0.0/jsonschema/validators.py       2013-05-21 
15:39:23.000000000 +0200
+++ new/jsonschema-2.2.0/jsonschema/validators.py       2013-09-25 
03:53:12.000000000 +0200
@@ -462,6 +462,46 @@
 
 
 def validate(instance, schema, cls=None, *args, **kwargs):
+    """
+    Validate an instance under the given schema.
+
+        >>> validate([2, 3, 4], {"maxItems" : 2})
+        Traceback (most recent call last):
+            ...
+        ValidationError: [2, 3, 4] is too long
+
+    :func:`validate` will first verify that the provided schema is itself
+    valid, since not doing so can lead to less obvious error messages and fail
+    in less obvious or consistent ways. If you know you have a valid schema
+    already or don't care, you might prefer using the
+    :meth:`~IValidator.validate` method directly on a specific validator
+    (e.g. :meth:`Draft4Validator.validate`).
+
+
+    :argument instance: the instance to validate
+    :argument schema: the schema to validate with
+    :argument cls: an :class:`IValidator` class that will be used to validate
+                   the instance.
+
+    If the ``cls`` argument is not provided, two things will happen in
+    accordance with the specification. First, if the schema has a
+    :validator:`$schema` property containing a known meta-schema [#]_ then the
+    proper validator will be used.  The specification recommends that all
+    schemas contain :validator:`$schema` properties for this reason. If no
+    :validator:`$schema` property is found, the default validator class is
+    :class:`Draft4Validator`.
+
+    Any other provided positional and keyword arguments will be passed on when
+    instantiating the ``cls``.
+
+    :raises:
+        :exc:`ValidationError` if the instance is invalid
+
+        :exc:`SchemaError` if the schema itself is invalid
+
+    .. rubric:: Footnotes
+    .. [#] known by a validator registered with :func:`validates`
+    """
     if cls is None:
         cls = validator_for(schema)
     cls.check_schema(schema)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsonschema-2.0.0/tox.ini new/jsonschema-2.2.0/tox.ini
--- old/jsonschema-2.0.0/tox.ini        2013-05-21 00:47:55.000000000 +0200
+++ new/jsonschema-2.2.0/tox.ini        2013-09-25 15:57:20.000000000 +0200
@@ -3,12 +3,21 @@
 
 [testenv]
 commands =
-    py.test -s jsonschema
+    py.test [] -s jsonschema
     {envpython} -m doctest README.rst
 deps =
     {[testenv:notpy33]deps}
     {[testenv:py33]deps}
 
+[testenv:coverage]
+commands =
+    coverage run --source jsonschema [] {envbindir}/py.test
+    coverage html
+deps =
+    {[testenv:notpy33]deps}
+    {[testenv:py33]deps}
+    coverage
+
 [testenv:docs]
 basepython = python
 changedir = docs
@@ -16,15 +25,12 @@
     lxml
     sphinx
 commands =
-    sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
+    sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
 
 [testenv:style]
 deps = flake8
 commands =
-    flake8 --max-complexity 10 jsonschema
-
-[flake8]
-ignore = E203,E302,E303,E701,F811
+    flake8 [] --max-complexity 10 jsonschema
 
 [testenv:py26]
 deps =
@@ -35,7 +41,7 @@
 
 [testenv:py33]
 commands =
-    py.test -s jsonschema
+    py.test [] -s jsonschema
     {envpython} -m doctest README.rst
     sphinx-build -b doctest docs {envtmpdir}/html
 deps =
@@ -52,8 +58,14 @@
 
 [testenv:all]
 deps =
-    isodate
     lxml
     pytest
     sphinx
+    strict-rfc3339
     webcolors
+
+[flake8]
+ignore = E203,E302,E303,E701,F811
+
+[pytest]
+addopts = -r s

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to