interface ArrayOptions {
    $id?: string;
    $schema?: string;
    contains?: TSchema;
    default?: any;
    description?: string;
    examples?: any;
    maxContains?: number;
    maxItems?: number;
    minContains?: number;
    minItems?: number;
    readOnly?: boolean;
    title?: string;
    uniqueItems?: boolean;
    writeOnly?: boolean;
}

Hierarchy (view full)

Properties

$id?: string

Id for this schema

$schema?: string
contains?: TSchema

A schema for which some elements should match

default?: any

Default value for this schema

description?: string

Description of this schema

examples?: any

Example values matching this schema

maxContains?: number

A maximum number of contains schema matches

maxItems?: number

The maximum number of items in this array

minContains?: number

A minimum number of contains schema matches

minItems?: number

The minimum number of items in this array

readOnly?: boolean

Optional annotation for readOnly

title?: string

Title of this schema

uniqueItems?: boolean

Should this schema contain unique items

writeOnly?: boolean

Optional annotation for writeOnly