array
Generates an array of values from the specified items sub-schema.
Inputs
itemsrequiredA sub-schema used to generate each array item.
minItemsoptionalThe minimum size of each generated array. Defaults to 0.
maxItemsoptionalThe maximum size of each generated array. Defaults to minItems plus 16.
Examples
Default size bounds:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number"
}
}
}
}Custom size bounds:
{
"type": "array",
"items": {
"type": "number"
},
"minItems": 10,
"maxItems": 90
}