Zum Hauptinhalt springen

Feld bzw. Liste (array)

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

Das freiwillige (optional) Feld colleagues ist eine Liste von Substrukturen (object) mit genau (strict) den Feldern last (Pflicht) und first (optional). Höchstens 5 (max) Einträge sind erlaubt.

Formular

Parameter​

ParameterBedeutung
itemsBeschreibung der Elemente, ein beliebiger Datentyp
minminimale Anzahl Elemente
maxmaximale Anzahl Elemente
optionalFeld darf fehlen (Voreinstellung false)
localizableganze Liste je Sprache

Typische Anwendung sind Bildstrecken: eine Liste von Substrukturen mit einer Mediendatei und einer Bildunterschrift.