Commit Graph

31 Commits

Author SHA1 Message Date
Julian Berman f672988e2c
Need to preserve backwards compat for RefResolvers without the new methods. 2015-03-21 22:08:54 -04:00
Julian Berman 2c59b7192e
Add back assertions for backwards compat. 2015-03-15 12:39:35 -04:00
Daniel Nephin ee1a256fc8 Use lru_cache 2015-03-04 16:20:43 -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
Julian Berman eb987ac9ee
Fix style. 2014-10-12 17:47:00 -04:00
aromanovich 98dc2df420 Add tests for fixed Error.absolute_path 2014-09-12 23:36:27 +06:00
Julian Berman 202157c77b Move this test case where it belongs. 2014-05-06 19:50:49 -04:00
Julian Berman f13ac35b63 Don't floatify the instance in minimum/maximum messages. 2013-12-26 11:53:38 -05:00
Julian Berman 44b35706a7 Add absolute path and absolute schema path.
Closes #120
2013-12-25 13:27:46 -05:00
Julian Berman 8eae430d66 Remove indirection. 2013-12-25 10:46:06 -05:00
Julian Berman cfa287cd7d Another leftover from unicode_literals 2013-12-25 10:31:22 -05:00
Julian Berman b15e7588da Minor cleanup. 2013-12-25 10:23:17 -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 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 1b6d643efb Be sure to test schema_path somewhere. 2013-07-27 22:23:23 -04:00
Julian Berman d6f99968a8 Remove ValidatorMixin. 2013-05-21 09:33:45 -04:00
Julian Berman aa7601131f Spacing. 2013-05-21 07:51:43 -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 85739b63ec Add jsonschema.validators.extend 2013-05-20 20:27:18 -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 5a54ff861f Move tests into package. 2013-05-17 19:39:23 -04:00