Documentation
    Preparing search index...

    Interface IArray

    Array type schema.

    Represents a JSON Schema array type with item type validation and size constraints. Maps to TypeScript T[] or Array<T> types. Note: Tuple types are not supported by LLM schemas.

    interface IArray {
        deprecated?: boolean;
        description?: string;
        example?: any;
        examples?: Record<string, any>;
        items: ILlmSchema;
        maxItems?: number & tags.Type<"uint64">;
        minItems?: number & tags.Type<"uint64">;
        readOnly?: boolean;
        title?: string;
        type: "array";
        uniqueItems?: boolean;
        writeOnly?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    deprecated?: boolean

    Whether this type is deprecated.

    When true, indicates the type should no longer be used and may be removed in future versions. Set via the @deprecated JSDoc tag.

    description?: string

    Detailed description of the schema.

    Full documentation for the type, explaining its purpose, constraints, and usage. Extracted from JSDoc comment body. Supports markdown formatting in many JSON Schema consumers.

    example?: any

    Single example value for the schema.

    A representative value that conforms to the schema, useful for documentation and testing. Set via the @example JSDoc tag.

    examples?: Record<string, any>

    Named example values for the schema.

    Multiple examples as key-value pairs, where keys are example names and values are conforming data. Useful for showing different valid states or edge cases.

    items: ILlmSchema

    Schema for array elements.

    All elements in the array must conform to this schema. For heterogeneous arrays, use an anyOf schema.

    maxItems?: number & tags.Type<"uint64">

    Maximum number of elements.

    The array must contain at most this many items.

    minItems?: number & tags.Type<"uint64">

    Minimum number of elements.

    The array must contain at least this many items.

    readOnly?: boolean

    Whether the property is read-only.

    When true, the property should not be modified by clients and is typically set by the server. Useful for generated IDs, timestamps, etc.

    title?: string

    Short title for the schema.

    A brief, human-readable name for the type. Typically extracted from the first line of a JSDoc comment or the @title tag.

    type: "array"
    uniqueItems?: boolean

    Whether elements must be unique.

    When true, no two elements may be equal. Maps to TypeScript Set<T> semantics but represented as an array.

    writeOnly?: boolean

    Whether the property is write-only.

    When true, the property is accepted on input but never returned in responses. Common for sensitive data like passwords.