schema.string
Randomly generates a string value.
Attributes
minLengthoptional
The minimum number of characters (inclusive) to be generated. Corresponds to the minLength JSON schema keyword. The default value is 0.
maxLengthoptional
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
}