generateValidValue
fun generateValidValue(pattern: String, minLength: Int?, maxLength: Int?, variationIndex: Int): String?
Generates a string that matches the given pattern, respecting length constraints.
The generator uses PatternGenerationOptions.spaceChars for \s matching and PatternGenerationOptions.anyPrintableChars for . matching.
Return
a string matching the pattern within length constraints, or null if generation fails
Parameters
pattern
ECMA-262 regular expression pattern
minLength
minimum length constraint from schema (nullable)
maxLength
maximum length constraint from schema (nullable)
variationIndex
index used as seed for deterministic random generation