Commit 09196fe2 by Sébastien Eustace

Update jsonschema dependency

parent 50190c36
...@@ -27,7 +27,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" ...@@ -27,7 +27,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "1.2.1" version = "1.2.1"
[[package]] [[package]]
category = "dev" category = "main"
description = "Classes Without Boilerplate" description = "Classes Without Boilerplate"
name = "attrs" name = "attrs"
optional = false optional = false
...@@ -172,7 +172,7 @@ version = "1.0.2" ...@@ -172,7 +172,7 @@ version = "1.0.2"
[[package]] [[package]]
category = "main" category = "main"
description = "Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy." description = "Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy."
marker = "python_version == \"2.7\"" marker = "python_version < \"3\""
name = "functools32" name = "functools32"
optional = false optional = false
python-versions = "*" python-versions = "*"
...@@ -224,11 +224,15 @@ description = "An implementation of JSON Schema validation for Python" ...@@ -224,11 +224,15 @@ description = "An implementation of JSON Schema validation for Python"
name = "jsonschema" name = "jsonschema"
optional = false optional = false
python-versions = "*" python-versions = "*"
version = "2.6.0" version = "3.0.0a3"
[package.dependencies] [package.dependencies]
attrs = ">=17.4.0"
pyrsistent = ">=0.14.0"
six = ">=1.11.0"
[package.dependencies.functools32] [package.dependencies.functools32]
python = ">=2.7,<2.8" python = "<3"
version = "*" version = "*"
[[package]] [[package]]
...@@ -660,7 +664,7 @@ python-versions = "*" ...@@ -660,7 +664,7 @@ python-versions = "*"
version = "0.5.1" version = "0.5.1"
[metadata] [metadata]
content-hash = "a51d7d14083ea9bfb51cc7b27c958663c237b27e202bd5c92105b7429d2e8518" content-hash = "d699b1da1c01895ed2b1b405253d197209d8ec123abd7a27656874a310bc90e1"
python-versions = "~2.7 || ^3.4" python-versions = "~2.7 || ^3.4"
[metadata.hashes] [metadata.hashes]
...@@ -687,7 +691,7 @@ html5lib = ["20b159aa3badc9d5ee8f5c647e5efd02ed2a66ab8d354930bd9ff139fc1dc0a3", ...@@ -687,7 +691,7 @@ html5lib = ["20b159aa3badc9d5ee8f5c647e5efd02ed2a66ab8d354930bd9ff139fc1dc0a3",
identify = ["5e956558a9a1e3b3891d7c6609fc9709657a11878af288ace484d1a46a93922b", "623086059219cc7b86c77a3891f3700cb175d4ce02b8fb8802b047301d71e783"] identify = ["5e956558a9a1e3b3891d7c6609fc9709657a11878af288ace484d1a46a93922b", "623086059219cc7b86c77a3891f3700cb175d4ce02b8fb8802b047301d71e783"]
idna = ["156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e", "684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16"] idna = ["156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e", "684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16"]
jinja2 = ["74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd", "f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4"] jinja2 = ["74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd", "f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4"]
jsonschema = ["000e68abd33c972a5248544925a0cae7d1125f9bf6c58280d37546b946769a08", "6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02"] jsonschema = ["3ae8afd6f4ca6417f14bf43ef61341311598f14234cdb4174fe43d42b236a3c8", "dfd8426040892c8d0ef6da574085f282569f189cb24b70091a66c21c12d6705e"]
livereload = ["583179dc8d49b040a9da79bd33de59e160d2a8802b939e304eb359a4419f6498", "dd4469a8f5a6833576e9f5433f1439c306de15dbbfeceabd32479b1123380fa5"] livereload = ["583179dc8d49b040a9da79bd33de59e160d2a8802b939e304eb359a4419f6498", "dd4469a8f5a6833576e9f5433f1439c306de15dbbfeceabd32479b1123380fa5"]
lockfile = ["6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799", "6c3cb24f344923d30b2785d5ad75182c8ea7ac1b6171b08657258ec7429d50fa"] lockfile = ["6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799", "6c3cb24f344923d30b2785d5ad75182c8ea7ac1b6171b08657258ec7429d50fa"]
markdown = ["c00429bd503a47ec88d5e30a751e147dcb4c6889663cd3e2ba0afe858e009baa", "d02e0f9b04c500cde6637c11ad7c72671f359b87b9fe924b2383649d8841db7c"] markdown = ["c00429bd503a47ec88d5e30a751e147dcb4c6889663cd3e2ba0afe858e009baa", "d02e0f9b04c500cde6637c11ad7c72671f359b87b9fe924b2383649d8841db7c"]
......
...@@ -22,7 +22,7 @@ def validate_object(obj, schema_name): # type: (dict, str) -> List[str] ...@@ -22,7 +22,7 @@ def validate_object(obj, schema_name): # type: (dict, str) -> List[str]
with open(schema) as f: with open(schema) as f:
schema = json.loads(f.read()) schema = json.loads(f.read())
validator = jsonschema.Draft4Validator(schema) validator = jsonschema.Draft7Validator(schema)
validation_errors = sorted(validator.iter_errors(obj), key=lambda e: e.path) validation_errors = sorted(validator.iter_errors(obj), key=lambda e: e.path)
errors = [] errors = []
......
...@@ -27,7 +27,7 @@ cleo = "^0.6.7" ...@@ -27,7 +27,7 @@ cleo = "^0.6.7"
requests = "^2.18" requests = "^2.18"
cachy = "^0.2" cachy = "^0.2"
requests-toolbelt = "^0.8.0" requests-toolbelt = "^0.8.0"
jsonschema = "^2.6" jsonschema = "^3.0a3"
pyrsistent = "^0.14.2" pyrsistent = "^0.14.2"
pyparsing = "^2.2" pyparsing = "^2.2"
cachecontrol = { version = "^0.12.4", extras = ["filecache"] } cachecontrol = { version = "^0.12.4", extras = ["filecache"] }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment