List schema
The variant for a list value, where items types the elements.

Extends · closed

A variant of the — one of the shapes a schema is allowed to take.
type
Always the list core type.
list
items
The schema every element of the list must match. Absent means elements of any kind.
optional
minItems
Minimum number of elements the list must have.
optional
maxItems
Maximum number of elements the list may have.
optional
description
What the list is for, when it is written inline; a published schema is described by its page.
optional
params
Type parameters that make this schema generic, each with its default schema.
⟨ * : ⟩optional
name
Legacy: a name some published schemas still carry. New schemas are named by their page.
optional

A list schema types a list. items is the schema every element must match, and minItems and maxItems bound the length.

This document describes the schema/list-schema type, one variant of the meta-schema. Its formal schema is attached as the schemaDefinition in this document's metadata, so the app can show it and create values of this type. Typed documents explains how that works.

See also

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime