Constraints to be applied on arbitraries for strings

Since 2.4.0

interface StringSharedConstraints {
    maxLength?: number;
    minLength?: number;
    size?: SizeForArbitrary;
}

Properties

maxLength?: number

Upper bound of the generated string length (included)

0x7fffffff — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true

Since 2.4.0

minLength?: number

Lower bound of the generated string length (included)

0

Since 2.4.0

Define how large the generated values should be (at max)

Since 2.22.0