diff options
author | Julian Berman <Julian@GrayVines.com> | 2013-05-20 12:21:07 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2013-05-20 12:24:30 -0400 |
commit | 0fe509c9c0ce61331c7c438bae983635cdf86076 (patch) | |
tree | 10d2dc912b23e33115ff4e9849128659adedbf46 /jsonschema/_utils.py | |
parent | 04ca6d5c3114f2e681777f5a138f0b3357f5666e (diff) | |
download | jsonschema-0fe509c9c0ce61331c7c438bae983635cdf86076.tar.gz |
Magic
Reimplement validators with jsonschema.validators.create
Diffstat (limited to 'jsonschema/_utils.py')
-rw-r--r-- | jsonschema/_utils.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jsonschema/_utils.py b/jsonschema/_utils.py index 044475c..44a577a 100644 --- a/jsonschema/_utils.py +++ b/jsonschema/_utils.py @@ -38,6 +38,16 @@ class URIDict(MutableMapping): return repr(self.store) +class Unset(object): + """ + An as-of-yet unset attribute or unprovided default parameter. + + """ + + def __repr__(self): + return "<unset>" + + def load_schema(name): """ Load a schema from ./schemas/``name``.json and return it. |