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
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
fcb178774f
Slightly clarify the wording, which means to refer to calling this method directly.
2014-12-07 12:24:47 -05:00
Julian Berman
93465e5308
Flake8
2013-12-24 21:41:23 -05:00
Julian Berman
bbbc8f8c22
Don't mix unicode and bytes when loading schemas.
...
Get rid of stupid from __future__ import unicode_literals in places, which was
causing these to be unicode.
2013-12-01 20:26:53 -05:00
Julian Berman
c763ab974c
Apply built-in formats only to strings, otherwise ignore.
2013-10-30 17:02:44 -04:00
Julian Berman
699528300b
Move ErrorTree closer to its friends.
2013-10-30 08:13:21 -04:00
John Anderson
1963981389
Clean up the output when an unknow type is found
2013-10-17 20:19:57 -07:00
Christopher Armstrong
db81ea81c4
Move the documentation for validate into the validate docstring
...
This allows for a better experience when using the Python
interactive interpreter.
2013-08-22 12:16:06 -05:00
Julian Berman
93467f114c
Update README and CHANGELOG
2013-05-21 09:39:40 -04:00
Julian Berman
d6f99968a8
Remove ValidatorMixin.
2013-05-21 09:33:45 -04:00
Julian Berman
d9a7c17244
Make sure to copy validators on extend.
2013-05-21 07:36:13 -04:00
Julian Berman
00e0287c66
Tidy the implementation a bit, + break the tests separately.
2013-05-21 07:31:52 -04:00
Daniel Gonzalez (pegasus)
ed0f98ee8f
Added validator_for to provide direct access to validators
2013-05-21 08:19:12 +02:00
Julian Berman
0f534a089c
Better wording.
2013-05-20 22:57:24 -04:00
Julian Berman
e48bc4ab34
Add some more docstrings to ErrorTree
2013-05-20 22:47:47 -04:00
Julian Berman
029b12d064
Deprecate ValidatorMixin.
2013-05-20 20:29:22 -04:00
Julian Berman
85739b63ec
Add jsonschema.validators.extend
2013-05-20 20:27:18 -04: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
Julian Berman
04ca6d5c31
Add version to create.
2013-05-20 11:02:22 -04:00
Julian Berman
4d750d6845
Make everything 5x slower.
...
Add jsonschema.validators.create, and reimplement ValidatorMixin in terms of
it. This makes all of the validators much much slower, but stay tuned for
magic.
2013-05-20 10:30:47 -04:00
Julian Berman
271c481a3f
Fix line length.
2013-05-17 19:50:06 -04:00
Chase Sterling
f50e4538ca
Provide own version of urlsplit and urldefrag that work with unknown schemes, fix #104
2013-05-13 11:40:28 -04:00
Julian Berman
fc75480f09
Merge branch 'split_into_package'
...
Closes: #101
2013-05-12 23:53:04 -04:00
Colin Dunklau
7cea7cc3f5
Split schemas to separate files, but load is broken
2013-05-12 21:21:13 -05:00
Julian Berman
ed11586f4c
Break out into _format and validators.
2013-05-12 21:05:49 -04:00