Constraints to be applied on dictionary

Since 2.22.0

interface DictionaryConstraints {
    depthIdentifier?: string | DepthIdentifier;
    maxKeys?: number;
    minKeys?: number;
    noNullPrototype?: boolean;
    size?: SizeForArbitrary;
}

Properties

depthIdentifier?: string | DepthIdentifier

Depth identifier can be used to share the current depth between several instances.

By default, if not specified, each instance of dictionary will have its own depth. In other words: you can have depth=1 in one while you have depth=100 in another one.

Since 3.15.0

maxKeys?: number

Lower bound for the number of keys defined into the generated instance

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

Since 2.22.0

minKeys?: number

Lower bound for the number of keys defined into the generated instance

0

Since 2.22.0

noNullPrototype?: boolean

Do not generate objects with null prototype

true

Since 3.13.0

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

Since 2.22.0