Commit Graph

699 Commits

Author SHA1 Message Date
Daniel Nephin 7241db0d5e Fix base_uri backwards compatibility. 2015-03-15 17:51:07 -04:00
Daniel Nephin ee1a256fc8 Use lru_cache 2015-03-04 16:20:43 -05:00
Daniel Nephin ca59f3fa87 Remove DefragResult. 2015-03-03 16:09:42 -05:00
Daniel Nephin d1e24483aa Remove context manager from ref() validation. 2015-03-01 20:52:20 -05:00
Daniel Nephin 613cf3e1a0 Perf improvements by using a cache. 2015-03-01 19:35:44 -05:00
Daniel Nephin 812392bbd4 Add benchmark script. 2015-03-01 19:16:41 -05:00
Daniel Nephin 22701dc652 Fix test failures 2015-02-27 19:53:54 -05:00
Kostis Anagnostopoulos @ STUW025 2fda1556ef issue #158: TRY to speed-up scope & $ref url-handling by keeping
fragments separated from URL (and avoid redunant frag/defrag).
Conflicts:
	jsonschema/tests/test_benchmarks.py

issue #158: Use try-finally to ensure resolver scopes_stack empty when
iteration breaks (no detectable performance penalty).

* Replace non-python-2.6 DefragResult with named-tuple.
* Add test-case checking scopes_stack empty.
Conflicts:
	jsonschema/tests/test_validators.py
	jsonschema/validators.py
2015-02-27 19:04:43 -05:00
Julian Berman a38eac9048 Merge pull request #200 from samarjeet27/master
Add build status image
2015-02-25 08:52:10 -05:00
Samarjeet 9a0caed26d Add build status image 2015-02-25 19:18:46 +05:30
Julian Berman d14012615f Merge pull request #192 from bennoleslie/patch-1
Fix Draft4Validator example code in validate.rst
2015-01-06 22:02:39 -05:00
Ben Leslie aa7233f15e Fix Draft4Validator example code in validate.rst 2015-01-07 13:56:02 +11:00
Julian Berman e1c30237cf Merge pull request #190 from vpelletier/master
Improve mutlipleOf validator with floating point value.
2015-01-04 13:01:54 -05:00
Vincent Pelletier 2b9a72273e Improve mutlipleOf validator with floating point value.
Rely on system's built-in float tolerance by comparing quotient with cast
quotient instead of checking distance to remainder.
2014-12-29 16:21:42 +01:00
Julian Berman add447fbe5
Try to be as explicit as possible on the million different uses of 'validator'.
Closes #175.
2014-12-07 12:48:03 -05:00
Julian Berman fcb178774f
Slightly clarify the wording, which means to refer to calling this method directly. 2014-12-07 12:24:47 -05:00
Julian Berman 62e942ea37
Merge commit '45cf1fb8a6a0b7ea1ab8de8ea9fc7addb0ffd149'
* commit '45cf1fb8a6a0b7ea1ab8de8ea9fc7addb0ffd149':
  Squashed 'json/' changes from 3cef243..9208016
2014-12-07 12:22:37 -05:00
Julian Berman 45cf1fb8a6
Squashed 'json/' changes from 3cef243..9208016
9208016 Merge pull request #67 from iainbeeston/defaults
f57888c Added tests around the default property
db28fee Merge pull request #63 from iainbeeston/patch-1
609944b Added the json-schema ruby gem to the list of libraries using the test suite

git-subtree-dir: json
git-subtree-split: 9208016d04c1b6774d5a17e8b037161873414edb
2014-12-07 12:22:33 -05:00
Julian Berman a23ef83090
Generative environments, and disable lxml on pypy3 which doesn't work yet. 2014-11-24 08:33:15 -05:00
Julian Berman 7593c1a15e
Merge remote-tracking branch 'asottile/pypy3'
* asottile/pypy3:
  Support pypy3
2014-10-31 17:23:26 -04:00
Anthony Sottile acbcbb1a16 Support pypy3 2014-10-16 14:04:58 -07:00
Julian Berman eb987ac9ee
Fix style. 2014-10-12 17:47:00 -04:00
Julian Berman 1610e2802d
Add a simple test and all of the args. 2014-10-12 17:46:47 -04:00
Julian Berman ff426eb870
Merge remote-tracking branch 'immerrr/make-exceptions-picklable'
* immerrr/make-exceptions-picklable:
  Make exceptions picklable on Python 2.X
2014-10-12 17:21:17 -04:00
immerrr 0a51b663dc Make exceptions picklable on Python 2.X 2014-10-07 03:55:28 +04:00
Julian Berman 642c802ca3
compat.py is not public API either. 2014-10-05 22:19:29 -04:00
Julian Berman 86844350c8
Merge remote-tracking branch 'sebastianmika/master'
* sebastianmika/master:
  Closes maximum issue which wasn't an issue. Remove float conversion on minimum validator to make it work for very negative numbers
  All tests pass when adding `float()` conversion on `instance` and `maximum` and `minimum` in respective validators
  Add in float(instance) in maximum validator
2014-10-05 13:41:55 -04:00
Julian Berman d82fa02dcf
Merge commit '43075285ed7271d9caaa02caa1747ead3cbb27ef'
* commit '43075285ed7271d9caaa02caa1747ead3cbb27ef':
  Squashed 'json/' changes from abdd47f..3cef243
2014-10-05 13:41:12 -04:00
Julian Berman 43075285ed
Squashed 'json/' changes from abdd47f..3cef243
3cef243 Applies to Draft4 as well.
f323723 Check comparisons for very negative numbers as well.
c73cf22 Merge pull request #60 from gilesbowkett/added-jsck-to-who-uses-it
e77c86a jsck uses JSON Schema Test Suite
1a96775 Merge pull request #57 from tanaka-tatsuya/fix/max-length-test-case
b124928 fixed maxLength test case

git-subtree-dir: json
git-subtree-split: 3cef243acce1290c8bbbc546f7f3fcbd6c10ff8b
2014-10-05 13:41:06 -04:00
Julian Berman 8df0518ca3
2.5.0-dev 2014-09-27 20:51:12 -04:00
Julian Berman fd4edb92e3
Merge remote-tracking branch 'aromanovich/master'
* aromanovich/master:
  Add tests for fixed Error.absolute_path
  Fix Error.absolute_path logic
2014-09-27 20:47:06 -04:00
Sebastian Mika b9dc7c4684 Closes maximum issue which wasn't an issue.
Remove float conversion on minimum validator to make it work for very negative numbers
2014-09-23 18:18:16 +02:00
Sebastian Mika 458022d07b All tests pass when adding `float()` conversion on `instance` and `maximum` and `minimum` in respective validators 2014-09-23 18:04:41 +02:00
Sebastian Mika 33bd732a91 Add in float(instance) in maximum validator 2014-09-23 17:42:55 +02:00
aromanovich 98dc2df420 Add tests for fixed Error.absolute_path 2014-09-12 23:36:27 +06:00
Chase Sterling 4baff2178f Add 'format' keyword to the draft 4 meta-schema 2014-09-07 02:54:43 -04:00
aromanovich bee8d27831 Fix Error.absolute_path logic 2014-09-04 21:16:56 +06:00
Julian Berman 9f1827038e
Bump version for 2.4.0 2014-08-18 20:54:18 -04:00
Julian Berman a97473c1b6
Release notes for v2.4.0 2014-08-18 20:53:47 -04:00
Julian Berman 470a8c6a90
Merge branch 'patch-1'
* patch-1:
  Workaround for tests in Python 3.4
2014-07-05 22:55:41 -04:00
Julian Berman 48cc545895
Merge branch 'patch-1'
* patch-1:
  Workaround for tests in Python 3.4
  Fix Python detection for Python 3.x
  Python 3.4 for travis
2014-07-05 22:53:18 -04:00
Alexander Bayandin 909970559b Workaround for tests in Python 3.4
related bug: http://bugs.python.org/issue21750
2014-07-05 08:36:12 +04:00
Alexander Bayandin be5097d249 Workaround for tests in Python 3.4
related bug: http://bugs.python.org/issue21750
2014-06-20 21:21:51 +04:00
Alexander Bayandin e8ba6a6b94 Fix Python detection for Python 3.x
File "<string>", line 1
    import sys; print sys.version_info[:2]
                        ^
SyntaxError: invalid syntax
2014-06-20 18:48:23 +04:00
Alexander Bayandin 0e3e763ce8 Python 3.4 for travis 2014-06-20 11:10:59 +04:00
Julian Berman f2d83f9a69
Supposedly that's what I put this here for. 2014-06-08 18:48:24 -04:00
Julian Berman 0865bfbd4c No idea why this call to float was here.
Fix large precision comparisions (even for ints).

Closes #166
2014-06-01 22:37:50 -04:00
Julian Berman ed332a1819 Squashed 'json/' changes from ddef9b0..abdd47f
abdd47f Add a test for large int comparisons.

git-subtree-dir: json
git-subtree-split: abdd47f9dff99a116c8ce09505f2e8f61433dbe8
2014-06-01 22:37:31 -04:00
Julian Berman bea28e9512 Merge commit 'ed332a1819789daad35de5faeb0986624f808c79'
* commit 'ed332a1819789daad35de5faeb0986624f808c79':
  Squashed 'json/' changes from ddef9b0..abdd47f
2014-06-01 22:37:31 -04:00
Julian Berman 1976689051 Merge branch 'cli'
* cli:
  Rework things a bit, remove py.test, allow multiple instances, and a validator.
  Add support for -m.
  Formatting.
  Fixed issue where arguments were not parsed correctly
  Dropped use of UTF-8 character √
  Added unit tests for CLI
  Added CLI format checking
  Fixed #134 -- Added CLI interface
  Support 3.4
  For my sanity, just depend on setuptools.
2014-05-23 08:14:09 -04:00