summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian+git@GrayVines.com>2012-06-03 09:57:48 -0400
committerJulian Berman <Julian+git@GrayVines.com>2012-06-03 09:57:48 -0400
commit3032b97c93d0364241582595c561cced53a72fa5 (patch)
treec4ca0f5e527428128f1d19363f3ee0ca13761360
parent5e1f54f61eda289201abc6e11369691d3dc88f8a (diff)
downloadjsonschema-3032b97c93d0364241582595c561cced53a72fa5.tar.gz
Comment cleanup.
-rw-r--r--jsonschema.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/jsonschema.py b/jsonschema.py
index d00835b..d12f804 100644
--- a/jsonschema.py
+++ b/jsonschema.py
@@ -170,12 +170,12 @@ class Validator(object):
"""
- _SKIPPED = set([ # handled in:
- "dependencies", "required", # properties
- "exclusiveMinimum", "exclusiveMaximum", # min*/max*
- "default", "description", "id", # no validation needed
+ _SKIPPED = set([ # handled in:
+ "dependencies", "required", # properties
+ "exclusiveMinimum", "exclusiveMaximum", # min*/max*
+ "default", "description", "format", "id", # no validation needed
"links", "name", "title",
- "$ref", "$schema", "format", # not yet supported
+ "$ref", "$schema", # not yet supported
])
_TYPES = {
@@ -378,7 +378,6 @@ class Validator(object):
def validate_properties(self, properties, instance, schema):
if not self.is_type(instance, "object"):
- # 'properties' is only relevant if the instance is actually an object.
return
for property, subschema in iteritems(properties):
@@ -420,7 +419,6 @@ class Validator(object):
def validate_items(self, items, instance, schema):
if not self.is_type(instance, "array"):
- # 'items' is only relevant if the instance is actually an array.
return
if self.is_type(items, "object"):