Merge "Change default size for strings to 1"

This commit is contained in:
Jenkins 2014-08-20 16:38:39 +00:00 committed by Gerrit Code Review
commit c42d0f81f2

View File

@ -24,7 +24,7 @@ class ValidTestGenerator(base.BasicGeneratorSet):
@base.generator_type("string")
@base.simple_generator
def generate_valid_string(self, schema):
size = schema.get("minLength", 0)
size = schema.get("minLength", 1)
# TODO(dkr mko): handle format and pattern
return "x" * size