summaryrefslogtreecommitdiff
path: root/jsonschema/_validators.py
diff options
context:
space:
mode:
Diffstat (limited to 'jsonschema/_validators.py')
-rw-r--r--jsonschema/_validators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonschema/_validators.py b/jsonschema/_validators.py
index 5246dfa..ae140fc 100644
--- a/jsonschema/_validators.py
+++ b/jsonschema/_validators.py
@@ -299,14 +299,14 @@ def required_draft4(validator, required, instance, schema):
def minProperties_draft4(validator, mP, instance, schema):
if validator.is_type(instance, "object") and len(instance) < mP:
- yield ValidationError("%r is too short" % (instance,))
+ yield ValidationError("%r does not have enough properties" % (instance,))
def maxProperties_draft4(validator, mP, instance, schema):
if not validator.is_type(instance, "object"):
return
if validator.is_type(instance, "object") and len(instance) > mP:
- yield ValidationError("%r is too short" % (instance,))
+ yield ValidationError("%r has too many properties" % (instance,))
def allOf_draft4(validator, allOf, instance, schema):