interface Options {
    ajv?: Options;
    debugMode?: boolean;
    largeArrayMechanism?: "default" | "json-stringify";
    largeArraySize?: string | number | BigInt;
    mode?: "debug" | "standalone";
    rounding?: "ceil" | "floor" | "round" | "trunc";
    schema?: Record<string, Schema>;
}

Properties

ajv?: Options

Configure Ajv, which is used to evaluate conditional schemas and combined (anyOf) schemas

debugMode?: boolean

Deprecated

Enable debug mode. Please use mode: "debug" instead

largeArrayMechanism?: "default" | "json-stringify"

Specify the function on how large Arrays should be stringified.

Default

'default'
largeArraySize?: string | number | BigInt

Large arrays are defined as arrays containing, by default, 20000 elements or more. That value can be adjusted via the option parameter largeArraySize.

Default

20000
mode?: "debug" | "standalone"

Running mode of fast-json-stringify

rounding?: "ceil" | "floor" | "round" | "trunc"

Optionally configure how the integer will be rounded

Default

'trunc'
schema?: Record<string, Schema>

Optionally add an external definition to reference from your schema