Shared constraints for:

Since 2.5.0

interface JsonSharedConstraints {
    depthSize?: DepthSize;
    maxDepth?: number;
    noUnicodeString?: boolean;
}

Properties

depthSize?: DepthSize

Limit the depth of the object by increasing the probability to generate simple values (defined via values) as we go deeper in the object.

Since 2.20.0

maxDepth?: number

Maximal depth allowed

Number.POSITIVE_INFINITY — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true

Since 2.5.0

noUnicodeString?: boolean

Only generate instances having keys and values made of ascii strings (when true)

true

Since 3.19.0