Array type schema info.

interface IArray {
    deprecated?: boolean;
    description?: string;
    example?: any;
    examples?: Record<string, any>;
    items: ILlmSchemaV3;
    maxItems?: number;
    minItems?: number;
    nullable?: boolean;
    title?: string;
    type: "array";
    uniqueItems?: boolean;
}

Hierarchy (View Summary)

Properties

deprecated?: boolean

Whether the type is deprecated or not.

description?: string

Detailed description of the schema.

example?: any

Example value.

examples?: Record<string, any>

List of example values as key-value pairs.

Items type schema info.

The items means the type of the array elements. In other words, it is the type schema info of the T in the TypeScript array type Array<T>.

maxItems?: number

Maximum items restriction.

Restriction of maximum number of items in the array.

minItems?: number

Minimum items restriction.

Restriction of minimum number of items in the array.

nullable?: boolean

Whether to allow null value or not.

title?: string

Title of the schema.

type: "array"

Discriminator value of the type.

uniqueItems?: boolean

Unique items restriction.

If this property value is true, target array must have unique items.