Merge "Change default size for strings to 1"
This commit is contained in:
commit
c42d0f81f2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user