Shared constraints for:

Remarks

Since 2.5.0

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

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.

Remarks

Since 2.20.0

maxDepth?: number

Maximal depth allowed

Default Value

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

Remarks

Since 2.5.0