PatternGenerationOptions

data class PatternGenerationOptions(val defaultMinLength: Int = DEFAULT_MIN_LENGTH, val spaceChars: String = RESTRICTED_SPACE_CHARS, val anyPrintableChars: String? = null)

Configuration options for pattern-based value generation.

These options control how the PatternValueGenerator generates strings matching or not matching regular expression patterns.

Character Classes

The spaceChars option defines what characters match \s in patterns. The default includes common whitespace: space, tab, form feed, newline, carriage return, and non-breaking space (U+00A0).

The anyPrintableChars option defines what characters match . (dot) and are used in negated character classes [^...]. When null, the library default (Latin-1 printable characters) is used.

See also

Constructors

Link copied to clipboard
constructor(defaultMinLength: Int = DEFAULT_MIN_LENGTH, spaceChars: String = RESTRICTED_SPACE_CHARS, anyPrintableChars: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

characters that match . (any printable); null uses library default

Link copied to clipboard

default minimum length used when neither the schema nor the pattern specifies a minimum length

Link copied to clipboard

characters that match \s in patterns; also affects \S (non-space)