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
Julian Berman
80ec8c0ec2
Rework things a bit, remove py.test, allow multiple instances, and a validator.
2014-05-18 11:28:45 -04:00
Julian Berman
fad8a030f3
Add support for -m.
2014-05-08 19:21:11 -04:00
Julian Berman
709e0377ec
Formatting.
2014-05-08 19:20:56 -04:00
Julian Berman
202157c77b
Move this test case where it belongs.
2014-05-06 19:50:49 -04:00
Julian Berman
7cebc7b533
Formatting.
2014-05-06 19:50:30 -04:00
Julian Berman
a471d04956
Merge remote-tracking branch 'ankostis/master'
...
* ankostis/master:
Fixes #164 , ValidationError.__unicode__(): use 'is' operator instead of '==' for unset-check
Test-case for #164 , ValidationError.__unicode__(): use 'is' operator instead of '==' for unset-check
2014-05-06 19:33:36 -04:00
ankostis@host:STUW025
39499db8ac
Fixes #164 , ValidationError.__unicode__(): use 'is' operator instead of
...
'==' for unset-check
Test-case now passes OK.
2014-05-05 20:23:53 +02:00
ankostis@host:STUW025
456234a61f
Test-case for #164 , ValidationError.__unicode__(): use 'is' operator
...
instead of '==' for unset-check
Currently test-case FAILS with a json-instances that have a screaming
__eq__() operator.
2014-05-05 20:22:54 +02:00
Bouke Haarsma
14cbfe29d6
Fixed issue where arguments were not parsed correctly
2014-05-04 17:49:46 -04:00
Bouke Haarsma
93977e56f3
Dropped use of UTF-8 character √
2014-05-04 17:49:46 -04:00
Bouke Haarsma
0a7f02f9cc
Added unit tests for CLI
2014-05-04 17:49:45 -04:00