Daniel Nephin
d1e24483aa
Remove context manager from ref() validation.
2015-03-01 20:52:20 -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
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
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
f13ac35b63
Don't floatify the instance in minimum/maximum messages.
2013-12-26 11:53:38 -05:00
Julian Berman
7c0d3073f2
Minor formatting.
2013-12-22 20:02:25 -05:00
Julian Berman
a73d1efe56
Format can apply to instances of any type.
...
Closes #125
2013-10-28 08:06:12 -04:00
John Anderson
3baddb61a3
This allows defining custom types
2013-10-17 19:13:58 -07:00
Chase Sterling
d60b7b4057
Cleanups to last commit
...
Add new additionalItems test instead of replacing old one
2013-08-25 12:37:05 -04:00
Chase Sterling
7bd85c5aaf
Fix error paths when additionalItems is used with items keyword. fix #122
2013-08-24 12:49:19 -04:00
Julian Berman
5670b184af
Line length.
2013-07-28 09:56:25 -04:00
AndrewSC
090290de8a
Changed wording for minProperties and maxProperties
2013-07-23 18:24:27 -05:00
AndrewSC
b7289fe178
fixing message
2013-07-23 10:44:46 -05:00
Julian Berman
25fb92cd2c
Oh fine I'll have an exceptions module.
...
I generally hate this, but there's enough ugliness and eventually it'd be nice
to have these in a public module for when we might want them out of __init__.py
2013-05-20 18:34:32 -04:00
Julian Berman
0fe509c9c0
Magic
...
Reimplement validators with jsonschema.validators.create
2013-05-20 12:24:30 -04:00