List schema

Learn how to define schemas for lists.

List schemas describe collections of items such as lists of tags, images, or products.

List form

The input for a list schema is a list of fields that allows adding, removing, and reordering items.

Examples

Below are some examples of list schemas:

123456
{
"type": "list",
"items": {
"type": "text"
}
}

Properties

The following properties are available for list schemas:

type
string

The type of the schema. Always list for list schemas.

items

The schema of the items in the list.

itemLabel(optional)
string

A label to prefix each item in the list, up to 60 characters. For example, "Tag" for "Tag 1", "Tag 2", and so on.

Item label
minimumLength(optional)
number

The minimum number of items (inclusive).

Default:0
maximumLength(optional)
number

The maximum number of items (inclusive).

Default:30