From 0fe509c9c0ce61331c7c438bae983635cdf86076 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Mon, 20 May 2013 12:21:07 -0400 Subject: Magic Reimplement validators with jsonschema.validators.create --- jsonschema/_utils.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'jsonschema/_utils.py') 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 "" + + def load_schema(name): """ Load a schema from ./schemas/``name``.json and return it. -- cgit v1.2.1