schema.string
Randomly generates a string value.
Attributes
minLength
optional
The minimum number of characters (inclusive) to be generated. Corresponds to the minLength JSON schema keyword. The default value is 0.
maxLength
optional
The maximum number of characters (inclusive) to be generated. Corresponds to the maxLength JSON schema keyword. The default value is 64.
Examples
Unbounded length:
{
"type": "string"
}
Bounded length:
{
"type": "string",
"minLength": 5,
"maxLength": 10
}