Skip to main content

Array or list (array)

{
"fields": {
"name": { "…": "as before" },
"age": { "…": "as before" },
"married": { "…": "as before" },
"email": { "…": "as before" },
"address": { "…": "as before" },
"colleagues": {
"optional": true,
"items": {
"properties": {
"first": {
"optional": true,
"type": "string"
},
"last": {
"type": "string"
}
},
"strict": true,
"type": "object"
},
"min": 0,
"max": 5,
"type": "array"
}
}
}

The voluntary (optional) field colleagues is a list of substructures (object) with exactly (strict) the fields last (required) and first (optional). At most 5 (max) entries are allowed.

Form

Parameters​

ParameterMeaning
itemsdescription of the elements, any data type
minminimum number of elements
maxmaximum number of elements
optionalfield may be missing (default false)
localizableentire list per language

A typical use is image galleries: a list of substructures with a media file and a caption.